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

Unified Diff: third_party/WebKit/Source/core/testing/InternalSettings.cpp

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: check for presence of settings using DCHECK + sync. 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
Index: third_party/WebKit/Source/core/testing/InternalSettings.cpp
diff --git a/third_party/WebKit/Source/core/testing/InternalSettings.cpp b/third_party/WebKit/Source/core/testing/InternalSettings.cpp
index 0010d9b23b10ec10a42df88ce5ac1636b977fd8a..47ba7148e884f4483e14b16bebd2bc30374422b3 100644
--- a/third_party/WebKit/Source/core/testing/InternalSettings.cpp
+++ b/third_party/WebKit/Source/core/testing/InternalSettings.cpp
@@ -142,6 +142,12 @@ void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionState& ex
settings()->setMockScrollbarsEnabled(enabled);
}
+void InternalSettings::setHideScrollbars(bool enabled, ExceptionState& exceptionState)
+{
+ InternalSettingsGuardForSettings();
+ settings()->setHideScrollbars(enabled);
+}
+
void InternalSettings::setMockGestureTapHighlightsEnabled(bool enabled, ExceptionState& exceptionState)
{
InternalSettingsGuardForSettings();
« no previous file with comments | « third_party/WebKit/Source/core/testing/InternalSettings.h ('k') | third_party/WebKit/Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698