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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 733293002: [Android] Add a flag to disable the pull-to-refresh effect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 04c4a175a9110a5f4284ea18899b4a0e78451f7d..c28e3d5afcacb581a53c6691a5f4d5aca021c619 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -62,6 +62,9 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// WebView uses the Android system's scrollbars and overscroll glow.
cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
+ // Pull-to-refresh should never be a default WebView action.
+ cl->AppendSwitch(switches::kDisablePullToRefreshEffect);
+
// Not yet supported in single-process mode.
cl->AppendSwitch(switches::kDisableSharedWorkers);
« no previous file with comments | « no previous file | chrome/app/generated_resources.grd » ('j') | content/browser/android/overscroll_controller_android.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698