Chromium Code Reviews| 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 "android_webview/lib/main/aw_main_delegate.h" | 5 #include "android_webview/lib/main/aw_main_delegate.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_content_browser_client.h" | 7 #include "android_webview/browser/aw_content_browser_client.h" |
| 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" | 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" |
| 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
| 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" | 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 57 // WebView uses the Android system's scrollbars and overscroll glow. | 57 // WebView uses the Android system's scrollbars and overscroll glow. |
| 58 cl->AppendSwitch(switches::kHideScrollbars); | 58 cl->AppendSwitch(switches::kHideScrollbars); |
| 59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
| 60 | 60 |
| 61 // Not yet secure in single-process mode. | 61 // Not yet secure in single-process mode. |
| 62 cl->AppendSwitch(switches::kDisableExperimentalWebGL); | 62 cl->AppendSwitch(switches::kDisableExperimentalWebGL); |
| 63 | 63 |
| 64 // Ganesh backed 2D-Canvas is not yet working and causes crashes. | 64 // Ganesh backed 2D-Canvas is not yet working and causes crashes. |
| 65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); | 65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); |
| 66 | 66 |
| 67 // File system API not supported (requires some new API; internal bug 6930981) | |
| 68 cl->AppendSwitch(switches::kDisableFileSystem); | |
|
boliu
2013/09/07 17:37:19
Don't think that was a flake, need to CONTENT_EXPO
| |
| 69 | |
| 70 // Enable D-PAD navigation for application compatibility. | |
| 71 cl->AppendSwitch(switches::kEnableSpatialNavigation); | |
| 72 | |
| 67 return false; | 73 return false; |
| 68 } | 74 } |
| 69 | 75 |
| 70 void AwMainDelegate::PreSandboxStartup() { | 76 void AwMainDelegate::PreSandboxStartup() { |
| 71 // TODO(torne): When we have a separate renderer process, we need to handle | 77 // TODO(torne): When we have a separate renderer process, we need to handle |
| 72 // being passed open FDs for the resource paks here. | 78 // being passed open FDs for the resource paks here. |
| 73 } | 79 } |
| 74 | 80 |
| 75 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { | 81 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { |
| 76 // TODO(torne): Adjust linux OOM score here. | 82 // TODO(torne): Adjust linux OOM score here. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 AwBrowserContext* browser_context) { | 131 AwBrowserContext* browser_context) { |
| 126 return AwGeolocationPermissionContext::Create(browser_context); | 132 return AwGeolocationPermissionContext::Create(browser_context); |
| 127 } | 133 } |
| 128 | 134 |
| 129 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( | 135 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( |
| 130 content::WebContents* web_contents) { | 136 content::WebContents* web_contents) { |
| 131 return AwWebContentsViewDelegate::Create(web_contents); | 137 return AwWebContentsViewDelegate::Create(web_contents); |
| 132 } | 138 } |
| 133 | 139 |
| 134 } // namespace android_webview | 140 } // namespace android_webview |
| OLD | NEW |