| 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 <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/browser_view_renderer.h" | 10 #include "android_webview/browser/browser_view_renderer.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 BrowserViewRenderer::CalculateTileMemoryPolicy(); | 69 BrowserViewRenderer::CalculateTileMemoryPolicy(); |
| 70 | 70 |
| 71 // WebView apps can override WebView#computeScroll to achieve custom | 71 // WebView apps can override WebView#computeScroll to achieve custom |
| 72 // scroll/fling. As a result, fling animations may not be ticked, potentially | 72 // scroll/fling. As a result, fling animations may not be ticked, potentially |
| 73 // confusing the tap suppression controller. Simply disable it for WebView. | 73 // confusing the tap suppression controller. Simply disable it for WebView. |
| 74 ui::GestureConfiguration::GetInstance() | 74 ui::GestureConfiguration::GetInstance() |
| 75 ->set_fling_touchscreen_tap_suppression_enabled(false); | 75 ->set_fling_touchscreen_tap_suppression_enabled(false); |
| 76 | 76 |
| 77 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); | 77 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); |
| 78 cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); | |
| 79 | 78 |
| 80 // WebView uses the Android system's scrollbars and overscroll glow. | 79 // WebView uses the Android system's scrollbars and overscroll glow. |
| 81 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 80 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
| 82 | 81 |
| 83 // Pull-to-refresh should never be a default WebView action. | 82 // Pull-to-refresh should never be a default WebView action. |
| 84 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); | 83 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); |
| 85 | 84 |
| 86 // Not yet supported in single-process mode. | 85 // Not yet supported in single-process mode. |
| 87 cl->AppendSwitch(switches::kDisableSharedWorkers); | 86 cl->AppendSwitch(switches::kDisableSharedWorkers); |
| 88 | 87 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 #if defined(VIDEO_HOLE) | 261 #if defined(VIDEO_HOLE) |
| 263 content::ExternalVideoSurfaceContainer* | 262 content::ExternalVideoSurfaceContainer* |
| 264 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 263 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
| 265 content::WebContents* web_contents) { | 264 content::WebContents* web_contents) { |
| 266 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( | 265 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( |
| 267 web_contents); | 266 web_contents); |
| 268 } | 267 } |
| 269 #endif | 268 #endif |
| 270 | 269 |
| 271 } // namespace android_webview | 270 } // namespace android_webview |
| OLD | NEW |