Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 10583007: Adding --enable-touch-events to the browser command line for Windows 8 and up. This will (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main_win.h" 5 #include "chrome/browser/chrome_browser_main_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 } 156 }
157 return result; 157 return result;
158 } 158 }
159 159
160 // ChromeBrowserMainPartsWin --------------------------------------------------- 160 // ChromeBrowserMainPartsWin ---------------------------------------------------
161 161
162 ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin( 162 ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin(
163 const content::MainFunctionParams& parameters) 163 const content::MainFunctionParams& parameters)
164 : ChromeBrowserMainParts(parameters) { 164 : ChromeBrowserMainParts(parameters) {
165 if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
166 CommandLine::ForCurrentProcess()->AppendSwitch(
167 switches::kEnableTouchEvents);
168 }
165 } 169 }
166 170
167 ChromeBrowserMainPartsWin::~ChromeBrowserMainPartsWin() { 171 ChromeBrowserMainPartsWin::~ChromeBrowserMainPartsWin() {
168 } 172 }
169 173
170 void ChromeBrowserMainPartsWin::ToolkitInitialized() { 174 void ChromeBrowserMainPartsWin::ToolkitInitialized() {
171 ChromeBrowserMainParts::ToolkitInitialized(); 175 ChromeBrowserMainParts::ToolkitInitialized();
172 gfx::PlatformFontWin::adjust_font_callback = &AdjustUIFont; 176 gfx::PlatformFontWin::adjust_font_callback = &AdjustUIFont;
173 gfx::PlatformFontWin::get_minimum_font_size_callback = &GetMinimumFontSize; 177 gfx::PlatformFontWin::get_minimum_font_size_callback = &GetMinimumFontSize;
174 } 178 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 if (resource_id) 342 if (resource_id)
339 return l10n_util::GetStringUTF16(resource_id); 343 return l10n_util::GetStringUTF16(resource_id);
340 return string16(); 344 return string16();
341 } 345 }
342 346
343 // static 347 // static
344 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 348 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
345 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 349 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
346 installer::SetTranslationDelegate(&delegate); 350 installer::SetTranslationDelegate(&delegate);
347 } 351 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698