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

Side by Side Diff: content/shell/app/shell_main_delegate.cc

Issue 1571833002: Add popup layout tests with device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/common/shell_messages.h » ('j') | 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 "content/shell/app/shell_main_delegate.h" 5 #include "content/shell/app/shell_main_delegate.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/cpu.h" 9 #include "base/cpu.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 command_line.AppendSwitch(switches::kEnableLogging); 163 command_line.AppendSwitch(switches::kEnableLogging);
164 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles); 164 command_line.AppendSwitch(switches::kAllowFileAccessFromFiles);
165 // only default to osmesa if the flag isn't already specified. 165 // only default to osmesa if the flag isn't already specified.
166 if (!command_line.HasSwitch(switches::kUseGL)) { 166 if (!command_line.HasSwitch(switches::kUseGL)) {
167 command_line.AppendSwitchASCII(switches::kUseGL, 167 command_line.AppendSwitchASCII(switches::kUseGL,
168 gfx::kGLImplementationOSMesaName); 168 gfx::kGLImplementationOSMesaName);
169 } 169 }
170 command_line.AppendSwitch(switches::kSkipGpuDataLoading); 170 command_line.AppendSwitch(switches::kSkipGpuDataLoading);
171 command_line.AppendSwitchASCII(switches::kTouchEvents, 171 command_line.AppendSwitchASCII(switches::kTouchEvents,
172 switches::kTouchEventsEnabled); 172 switches::kTouchEventsEnabled);
173 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0"); 173 if (!command_line.HasSwitch(switches::kForceDeviceScaleFactor))
174 command_line.AppendSwitchASCII(switches::kForceDeviceScaleFactor, "1.0");
174 command_line.AppendSwitch( 175 command_line.AppendSwitch(
175 switches::kDisableGestureRequirementForMediaPlayback); 176 switches::kDisableGestureRequirementForMediaPlayback);
176 177
177 if (!command_line.HasSwitch(switches::kStableReleaseMode)) { 178 if (!command_line.HasSwitch(switches::kStableReleaseMode)) {
178 command_line.AppendSwitch( 179 command_line.AppendSwitch(
179 switches::kEnableExperimentalWebPlatformFeatures); 180 switches::kEnableExperimentalWebPlatformFeatures);
180 // Only enable WebBluetooth during Layout Tests in non release mode. 181 // Only enable WebBluetooth during Layout Tests in non release mode.
181 command_line.AppendSwitch(switches::kEnableWebBluetooth); 182 command_line.AppendSwitch(switches::kEnableWebBluetooth);
182 } 183 }
183 184
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 352
352 return renderer_client_.get(); 353 return renderer_client_.get();
353 } 354 }
354 355
355 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() { 356 ContentUtilityClient* ShellMainDelegate::CreateContentUtilityClient() {
356 utility_client_.reset(new ShellContentUtilityClient); 357 utility_client_.reset(new ShellContentUtilityClient);
357 return utility_client_.get(); 358 return utility_client_.get();
358 } 359 }
359 360
360 } // namespace content 361 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/common/shell_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698