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/browser_view_renderer.h" | 8 #include "android_webview/browser/browser_view_renderer.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/crash_reporter/aw_microdump_crash_reporter.h" | 10 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // WebView uses the Android system's scrollbars and overscroll glow. | 65 // WebView uses the Android system's scrollbars and overscroll glow. |
66 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 66 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
67 | 67 |
68 // Pull-to-refresh should never be a default WebView action. | 68 // Pull-to-refresh should never be a default WebView action. |
69 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); | 69 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); |
70 | 70 |
71 // Not yet supported in single-process mode. | 71 // Not yet supported in single-process mode. |
72 cl->AppendSwitch(switches::kDisableSharedWorkers); | 72 cl->AppendSwitch(switches::kDisableSharedWorkers); |
73 | 73 |
74 // File system API not supported (requires some new API; internal bug 6930981) | |
75 cl->AppendSwitch(switches::kDisableFileSystem); | |
76 | |
77 // Web Notification API and the Push API are not supported (crbug.com/434712) | 74 // Web Notification API and the Push API are not supported (crbug.com/434712) |
78 cl->AppendSwitch(switches::kDisableNotifications); | 75 cl->AppendSwitch(switches::kDisableNotifications); |
79 | 76 |
80 // TODO(ddorwin): Enable unprefixed EME. See http://crbug.com/394931. | 77 // TODO(ddorwin): Enable unprefixed EME. See http://crbug.com/394931. |
81 cl->AppendSwitch(switches::kDisableEncryptedMedia); | 78 cl->AppendSwitch(switches::kDisableEncryptedMedia); |
82 | 79 |
83 // WebRTC hardware decoding is not supported, internal bug 15075307 | 80 // WebRTC hardware decoding is not supported, internal bug 15075307 |
84 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); | 81 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); |
85 cl->AppendSwitch(switches::kDisableAcceleratedVideoDecode); | 82 cl->AppendSwitch(switches::kDisableAcceleratedVideoDecode); |
86 | 83 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 190 |
194 #if defined(VIDEO_HOLE) | 191 #if defined(VIDEO_HOLE) |
195 content::ExternalVideoSurfaceContainer* | 192 content::ExternalVideoSurfaceContainer* |
196 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 193 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
197 content::WebContents* web_contents) { | 194 content::WebContents* web_contents) { |
198 return ExternalVideoSurfaceContainerImpl::Create(web_contents); | 195 return ExternalVideoSurfaceContainerImpl::Create(web_contents); |
199 } | 196 } |
200 #endif | 197 #endif |
201 | 198 |
202 } // namespace android_webview | 199 } // namespace android_webview |
OLD | NEW |