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/common/aw_descriptors.h" | 10 #include "android_webview/common/aw_descriptors.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 BrowserViewRenderer::CalculateTileMemoryPolicy(); | 66 BrowserViewRenderer::CalculateTileMemoryPolicy(); |
67 | 67 |
68 // WebView apps can override WebView#computeScroll to achieve custom | 68 // WebView apps can override WebView#computeScroll to achieve custom |
69 // scroll/fling. As a result, fling animations may not be ticked, potentially | 69 // scroll/fling. As a result, fling animations may not be ticked, potentially |
70 // confusing the tap suppression controller. Simply disable it for WebView. | 70 // confusing the tap suppression controller. Simply disable it for WebView. |
71 ui::GestureConfiguration::GetInstance() | 71 ui::GestureConfiguration::GetInstance() |
72 ->set_fling_touchscreen_tap_suppression_enabled(false); | 72 ->set_fling_touchscreen_tap_suppression_enabled(false); |
73 | 73 |
74 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); | 74 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); |
75 cl->AppendSwitch(switches::kIPCSyncCompositing); | 75 cl->AppendSwitch(switches::kIPCSyncCompositing); |
| 76 cl->AppendSwitch(switches::kAsyncInputForSyncCompositor); |
76 cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); | 77 cl->AppendSwitch(cc::switches::kEnableBeginFrameScheduling); |
77 | 78 |
78 // WebView uses the Android system's scrollbars and overscroll glow. | 79 // WebView uses the Android system's scrollbars and overscroll glow. |
79 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 80 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
80 | 81 |
81 // Pull-to-refresh should never be a default WebView action. | 82 // Pull-to-refresh should never be a default WebView action. |
82 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); | 83 cl->AppendSwitch(switches::kDisablePullToRefreshEffect); |
83 | 84 |
84 // Not yet supported in single-process mode. | 85 // Not yet supported in single-process mode. |
85 cl->AppendSwitch(switches::kDisableSharedWorkers); | 86 cl->AppendSwitch(switches::kDisableSharedWorkers); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 #if defined(VIDEO_HOLE) | 250 #if defined(VIDEO_HOLE) |
250 content::ExternalVideoSurfaceContainer* | 251 content::ExternalVideoSurfaceContainer* |
251 AwMainDelegate::CreateExternalVideoSurfaceContainer( | 252 AwMainDelegate::CreateExternalVideoSurfaceContainer( |
252 content::WebContents* web_contents) { | 253 content::WebContents* web_contents) { |
253 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( | 254 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( |
254 web_contents); | 255 web_contents); |
255 } | 256 } |
256 #endif | 257 #endif |
257 | 258 |
258 } // namespace android_webview | 259 } // namespace android_webview |
OLD | NEW |