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

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

Issue 1037693003: Disable Screen Orientation API locking ability for WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing file Created 5 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
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 cl->AppendSwitch(switches::kDisableEncryptedMedia); 83 cl->AppendSwitch(switches::kDisableEncryptedMedia);
84 #endif 84 #endif
85 85
86 // WebRTC hardware decoding is not supported, internal bug 15075307 86 // WebRTC hardware decoding is not supported, internal bug 15075307
87 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding); 87 cl->AppendSwitch(switches::kDisableWebRtcHWDecoding);
88 cl->AppendSwitch(switches::kDisableAcceleratedVideoDecode); 88 cl->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
89 89
90 // This is needed for sharing textures across the different GL threads. 90 // This is needed for sharing textures across the different GL threads.
91 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); 91 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes);
92 92
93 // WebView does not yet support screen orientation locking.
94 cl->AppendSwitch(switches::kDisableScreenOrientationLock);
95
93 // This is needed to be able to mmap the V8 snapshot and ICU data file 96 // This is needed to be able to mmap the V8 snapshot and ICU data file
94 // directly from the WebView .apk. 97 // directly from the WebView .apk.
95 // This needs to be here so that it gets to run before the code in 98 // This needs to be here so that it gets to run before the code in
96 // content_main_runner that reads these values tries to do so. 99 // content_main_runner that reads these values tries to do so.
97 // In multi-process mode this code would live in 100 // In multi-process mode this code would live in
98 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. 101 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess.
99 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 102 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
100 #ifdef __LP64__ 103 #ifdef __LP64__
101 const char kNativesFileName[] = "natives_blob_64.bin"; 104 const char kNativesFileName[] = "natives_blob_64.bin";
102 const char kSnapshotFileName[] = "snapshot_blob_64.bin"; 105 const char kSnapshotFileName[] = "snapshot_blob_64.bin";
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 198
196 #if defined(VIDEO_HOLE) 199 #if defined(VIDEO_HOLE)
197 content::ExternalVideoSurfaceContainer* 200 content::ExternalVideoSurfaceContainer*
198 AwMainDelegate::CreateExternalVideoSurfaceContainer( 201 AwMainDelegate::CreateExternalVideoSurfaceContainer(
199 content::WebContents* web_contents) { 202 content::WebContents* web_contents) {
200 return new ExternalVideoSurfaceContainerImpl(web_contents); 203 return new ExternalVideoSurfaceContainerImpl(web_contents);
201 } 204 }
202 #endif 205 #endif
203 206
204 } // namespace android_webview 207 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698