| 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/in_process_view_renderer.h" | 9 #include "android_webview/browser/in_process_view_renderer.h" |
| 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // Ganesh backed 2D-Canvas is not yet working and causes crashes. | 69 // Ganesh backed 2D-Canvas is not yet working and causes crashes. |
| 70 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); | 70 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); |
| 71 | 71 |
| 72 // File system API not supported (requires some new API; internal bug 6930981) | 72 // File system API not supported (requires some new API; internal bug 6930981) |
| 73 cl->AppendSwitch(switches::kDisableFileSystem); | 73 cl->AppendSwitch(switches::kDisableFileSystem); |
| 74 | 74 |
| 75 // Enable D-PAD navigation for application compatibility. | 75 // Enable D-PAD navigation for application compatibility. |
| 76 cl->AppendSwitch(switches::kEnableSpatialNavigation); | 76 cl->AppendSwitch(switches::kEnableSpatialNavigation); |
| 77 | 77 |
| 78 // Disable compositor touch hit testing for now to mitigate risk of bugs. |
| 79 cl->AppendSwitch(cc::switches::kDisableCompositorTouchHitTesting); |
| 80 |
| 78 // Disable WebRTC. | 81 // Disable WebRTC. |
| 79 cl->AppendSwitch(switches::kDisableWebRTC); | 82 cl->AppendSwitch(switches::kDisableWebRTC); |
| 80 | 83 |
| 81 return false; | 84 return false; |
| 82 } | 85 } |
| 83 | 86 |
| 84 void AwMainDelegate::PreSandboxStartup() { | 87 void AwMainDelegate::PreSandboxStartup() { |
| 85 // TODO(torne): When we have a separate renderer process, we need to handle | 88 // TODO(torne): When we have a separate renderer process, we need to handle |
| 86 // being passed open FDs for the resource paks here. | 89 // being passed open FDs for the resource paks here. |
| 87 } | 90 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( | 146 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( |
| 144 content::WebContents* web_contents) { | 147 content::WebContents* web_contents) { |
| 145 return AwWebContentsViewDelegate::Create(web_contents); | 148 return AwWebContentsViewDelegate::Create(web_contents); |
| 146 } | 149 } |
| 147 | 150 |
| 148 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { | 151 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { |
| 149 return new AwWebPreferencesPopulaterImpl(); | 152 return new AwWebPreferencesPopulaterImpl(); |
| 150 } | 153 } |
| 151 | 154 |
| 152 } // namespace android_webview | 155 } // namespace android_webview |
| OLD | NEW |