| 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/lib/aw_browser_dependency_factory_impl.h" | 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { | 50 bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
| 51 content::SetContentClient(&content_client_); | 51 content::SetContentClient(&content_client_); |
| 52 | 52 |
| 53 content::BrowserMediaPlayerManager::RegisterMediaUrlInterceptor( | 53 content::BrowserMediaPlayerManager::RegisterMediaUrlInterceptor( |
| 54 new AwMediaUrlInterceptor()); | 54 new AwMediaUrlInterceptor()); |
| 55 | 55 |
| 56 BrowserViewRenderer::CalculateTileMemoryPolicy(); | 56 BrowserViewRenderer::CalculateTileMemoryPolicy(); |
| 57 | 57 |
| 58 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); | 58 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); |
| 59 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); | 59 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); |
| 60 cl->AppendSwitch(switches::kEnableImplSidePainting); | |
| 61 | 60 |
| 62 // WebView uses the Android system's scrollbars and overscroll glow. | 61 // WebView uses the Android system's scrollbars and overscroll glow. |
| 63 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 62 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
| 64 | 63 |
| 65 // Pull-to-refresh should never be a default WebView action. | 64 // Pull-to-refresh should never be a default WebView action. |
| 66 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); | 65 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); |
| 67 | 66 |
| 68 // Not yet supported in single-process mode. | 67 // Not yet supported in single-process mode. |
| 69 cl->AppendSwitch(switches::kDisableSharedWorkers); | 68 cl->AppendSwitch(switches::kDisableSharedWorkers); |
| 70 | 69 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 157 |
| 159 #if defined(VIDEO_HOLE) | 158 #if defined(VIDEO_HOLE) |
| 160 content::ExternalVideoSurfaceContainer* | 159 content::ExternalVideoSurfaceContainer* |
| 161 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 160 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
| 162 content::WebContents* web_contents) { | 161 content::WebContents* web_contents) { |
| 163 return new ExternalVideoSurfaceContainerImpl(web_contents); | 162 return new ExternalVideoSurfaceContainerImpl(web_contents); |
| 164 } | 163 } |
| 165 #endif | 164 #endif |
| 166 | 165 |
| 167 } // namespace android_webview | 166 } // namespace android_webview |
| OLD | NEW |