OLD | NEW |
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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 switches::kUseGL, gfx::kGLImplementationOSMesaName); | 118 switches::kUseGL, gfx::kGLImplementationOSMesaName); |
119 SetAllowOSMesaImageTransportForTesting(); | 119 SetAllowOSMesaImageTransportForTesting(); |
120 DisableSystemDragDrop(); | 120 DisableSystemDragDrop(); |
121 DisableModalPopupMenus(); | 121 DisableModalPopupMenus(); |
122 command_line.AppendSwitch(switches::kSkipGpuDataLoading); | 122 command_line.AppendSwitch(switches::kSkipGpuDataLoading); |
123 command_line.AppendSwitch(switches::kEnableExperimentalWebKitFeatures); | 123 command_line.AppendSwitch(switches::kEnableExperimentalWebKitFeatures); |
124 command_line.AppendSwitch(switches::kEnableCssShaders); | 124 command_line.AppendSwitch(switches::kEnableCssShaders); |
125 command_line.AppendSwitchASCII(switches::kTouchEvents, | 125 command_line.AppendSwitchASCII(switches::kTouchEvents, |
126 switches::kTouchEventsEnabled); | 126 switches::kTouchEventsEnabled); |
127 command_line.AppendSwitch(switches::kEnableGestureTapHighlight); | 127 command_line.AppendSwitch(switches::kEnableGestureTapHighlight); |
128 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); | 128 if (!command_line.HasSwitch(switches::kEnableThreadedCompositing)) |
| 129 command_line.AppendSwitch(cc::switches::kDisableThreadedAnimation); |
129 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) | 130 if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) |
130 command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter); | 131 command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter); |
131 | 132 |
132 net::CookieMonster::EnableFileScheme(); | 133 net::CookieMonster::EnableFileScheme(); |
133 if (!WebKitTestPlatformInitialize()) { | 134 if (!WebKitTestPlatformInitialize()) { |
134 if (exit_code) | 135 if (exit_code) |
135 *exit_code = 1; | 136 *exit_code = 1; |
136 return true; | 137 return true; |
137 } | 138 } |
138 } | 139 } |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 browser_client_.reset(new ShellContentBrowserClient); | 202 browser_client_.reset(new ShellContentBrowserClient); |
202 return browser_client_.get(); | 203 return browser_client_.get(); |
203 } | 204 } |
204 | 205 |
205 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { | 206 ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() { |
206 renderer_client_.reset(new ShellContentRendererClient); | 207 renderer_client_.reset(new ShellContentRendererClient); |
207 return renderer_client_.get(); | 208 return renderer_client_.get(); |
208 } | 209 } |
209 | 210 |
210 } // namespace content | 211 } // namespace content |
OLD | NEW |