| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); | 88 cl->AppendSwitch(switches::kEnableThreadedTextureMailboxes); |
| 89 | 89 |
| 90 // WebView does not yet support screen orientation locking. | 90 // WebView does not yet support screen orientation locking. |
| 91 cl->AppendSwitch(switches::kDisableScreenOrientationLock); | 91 cl->AppendSwitch(switches::kDisableScreenOrientationLock); |
| 92 | 92 |
| 93 // WebView does not (yet) save Chromium data during shutdown, so add setting | 93 // WebView does not (yet) save Chromium data during shutdown, so add setting |
| 94 // for Chrome to aggressively persist DOM Storage to minimize data loss. | 94 // for Chrome to aggressively persist DOM Storage to minimize data loss. |
| 95 // http://crbug.com/479767 | 95 // http://crbug.com/479767 |
| 96 cl->AppendSwitch(switches::kEnableAggressiveDOMStorageFlushing); | 96 cl->AppendSwitch(switches::kEnableAggressiveDOMStorageFlushing); |
| 97 | 97 |
| 98 // This will not be necessary after the "direction" strategy is enabled by |
| 99 // default. See http://crbug.com/451255. |
| 100 cl->AppendSwitchASCII(switches::kTouchTextSelectionStrategy, "direction"); |
| 101 |
| 98 // This is needed to be able to mmap the V8 snapshot and ICU data file | 102 // This is needed to be able to mmap the V8 snapshot and ICU data file |
| 99 // directly from the WebView .apk. | 103 // directly from the WebView .apk. |
| 100 // This needs to be here so that it gets to run before the code in | 104 // This needs to be here so that it gets to run before the code in |
| 101 // content_main_runner that reads these values tries to do so. | 105 // content_main_runner that reads these values tries to do so. |
| 102 // In multi-process mode this code would live in | 106 // In multi-process mode this code would live in |
| 103 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. | 107 // AwContentBrowserClient::GetAdditionalMappedFilesForChildProcess. |
| 104 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 108 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |
| 105 #ifdef __LP64__ | 109 #ifdef __LP64__ |
| 106 const char kNativesFileName[] = "natives_blob_64.bin"; | 110 const char kNativesFileName[] = "natives_blob_64.bin"; |
| 107 const char kSnapshotFileName[] = "snapshot_blob_64.bin"; | 111 const char kSnapshotFileName[] = "snapshot_blob_64.bin"; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 #if defined(VIDEO_HOLE) | 203 #if defined(VIDEO_HOLE) |
| 200 content::ExternalVideoSurfaceContainer* | 204 content::ExternalVideoSurfaceContainer* |
| 201 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 205 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
| 202 content::WebContents* web_contents) { | 206 content::WebContents* web_contents) { |
| 203 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( | 207 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( |
| 204 web_contents); | 208 web_contents); |
| 205 } | 209 } |
| 206 #endif | 210 #endif |
| 207 | 211 |
| 208 } // namespace android_webview | 212 } // namespace android_webview |
| OLD | NEW |