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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: s/AppHooksHelper/AppHooks Created 3 years, 9 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
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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "android_webview/browser/aw_content_browser_client.h" 9 #include "android_webview/browser/aw_content_browser_client.h"
10 #include "android_webview/browser/aw_safe_browsing_config_helper.h" 10 #include "android_webview/browser/aw_safe_browsing_config_helper.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 cl->AppendSwitch(switches::kDisablePresentationAPI); 112 cl->AppendSwitch(switches::kDisablePresentationAPI);
113 113
114 // WebView doesn't support Remote Playback API for the same reason as the 114 // WebView doesn't support Remote Playback API for the same reason as the
115 // Presentation API, see https://crbug.com/521319. 115 // Presentation API, see https://crbug.com/521319.
116 cl->AppendSwitch(switches::kDisableRemotePlaybackAPI); 116 cl->AppendSwitch(switches::kDisableRemotePlaybackAPI);
117 117
118 // WebView does not support MediaSession API since there's no UI for media 118 // WebView does not support MediaSession API since there's no UI for media
119 // metadata and controls. 119 // metadata and controls.
120 cl->AppendSwitch(switches::kDisableMediaSessionAPI); 120 cl->AppendSwitch(switches::kDisableMediaSessionAPI);
121 121
122 // WebView does not use the video fullscreen detection feature.
123 cl->AppendSwitch(switches::kDisableVideoFullscreenDetection);
124
122 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) 125 #if defined(V8_USE_EXTERNAL_STARTUP_DATA)
123 if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) { 126 if (cl->GetSwitchValueASCII(switches::kProcessType).empty()) {
124 // Browser process (no type specified). 127 // Browser process (no type specified).
125 128
126 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor()); 129 content::RegisterMediaUrlInterceptor(new AwMediaUrlInterceptor());
127 BrowserViewRenderer::CalculateTileMemoryPolicy(); 130 BrowserViewRenderer::CalculateTileMemoryPolicy();
128 // WebView apps can override WebView#computeScroll to achieve custom 131 // WebView apps can override WebView#computeScroll to achieve custom
129 // scroll/fling. As a result, fling animations may not be ticked, 132 // scroll/fling. As a result, fling animations may not be ticked,
130 // potentially 133 // potentially
131 // confusing the tap suppression controller. Simply disable it for WebView 134 // confusing the tap suppression controller. Simply disable it for WebView
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 283
281 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 284 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
282 return new AwWebPreferencesPopulaterImpl(); 285 return new AwWebPreferencesPopulaterImpl();
283 } 286 }
284 287
285 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() { 288 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
286 return new AwLocaleManagerImpl(); 289 return new AwLocaleManagerImpl();
287 } 290 }
288 291
289 } // namespace android_webview 292 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java » ('j') | chrome/browser/android/app_hooks.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698