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

Unified Diff: android_webview/native/aw_settings.cc

Issue 2380963002: Use hide_scrollbars setting for Android WebView. (Closed)
Patch Set: Add dependency to patch fixing frame scrolling. Created 4 years, 3 months 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
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_settings.cc
diff --git a/android_webview/native/aw_settings.cc b/android_webview/native/aw_settings.cc
index 8630d34575a0d35ad7c65f731c7e2509d96c1135..9bc886324bcf8164212f9297d6c13bf841e6bf33 100644
--- a/android_webview/native/aw_settings.cc
+++ b/android_webview/native/aw_settings.cc
@@ -435,6 +435,9 @@ void AwSettings::PopulateWebPreferencesLocked(JNIEnv* env,
// possible API breakage because of disabling insecure use of geolocation.
web_prefs->allow_geolocation_on_insecure_origins =
Java_AwSettings_getAllowGeolocationOnInsecureOrigins(env, obj);
+
+ // We use system scrollbars, so make Blink's scrollbars invisible.
+ web_prefs->hide_scrollbars = true;
}
static jlong Init(JNIEnv* env,
« no previous file with comments | « no previous file | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698