Commit 19d32935 authored by girard@chromium.org's avatar girard@chromium.org

Set --enable-touch-event by default on Win7+


BUG=138195
TEST=


Review URL: https://chromiumcodereview.appspot.com/10808074

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148838 0039d316-1c4b-4281-b951-d872f2087c98
parent ce39bc79
...@@ -150,6 +150,11 @@ int DoUninstallTasks(bool chrome_still_running) { ...@@ -150,6 +150,11 @@ int DoUninstallTasks(bool chrome_still_running) {
ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin( ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin(
const content::MainFunctionParams& parameters) const content::MainFunctionParams& parameters)
: ChromeBrowserMainParts(parameters) { : ChromeBrowserMainParts(parameters) {
if ((base::win::GetVersion() >= base::win::VERSION_WIN7) &&
(base::win::IsTouchEnabled())) {
CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableTouchEvents);
}
if (base::win::IsMetroProcess()) { if (base::win::IsMetroProcess()) {
typedef const wchar_t* (*GetMetroSwitches)(void); typedef const wchar_t* (*GetMetroSwitches)(void);
GetMetroSwitches metro_switches_proc = reinterpret_cast<GetMetroSwitches>( GetMetroSwitches metro_switches_proc = reinterpret_cast<GetMetroSwitches>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment