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

Side by Side Diff: third_party/WebKit/Source/core/testing/InternalSettings.cpp

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: Add missing plumbing of hide_scrollbars preference. 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return 0; 135 return 0;
136 return &page()->settings(); 136 return &page()->settings();
137 } 137 }
138 138
139 void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionState& ex ceptionState) 139 void InternalSettings::setMockScrollbarsEnabled(bool enabled, ExceptionState& ex ceptionState)
140 { 140 {
141 InternalSettingsGuardForSettings(); 141 InternalSettingsGuardForSettings();
142 settings()->setMockScrollbarsEnabled(enabled); 142 settings()->setMockScrollbarsEnabled(enabled);
143 } 143 }
144 144
145 void InternalSettings::setHideScrollbars(bool enabled, ExceptionState& exception State)
146 {
147 InternalSettingsGuardForSettings();
148 settings()->setHideScrollbars(enabled);
149 }
150
145 void InternalSettings::setMockGestureTapHighlightsEnabled(bool enabled, Exceptio nState& exceptionState) 151 void InternalSettings::setMockGestureTapHighlightsEnabled(bool enabled, Exceptio nState& exceptionState)
146 { 152 {
147 InternalSettingsGuardForSettings(); 153 InternalSettingsGuardForSettings();
148 settings()->setMockGestureTapHighlightsEnabled(enabled); 154 settings()->setMockGestureTapHighlightsEnabled(enabled);
149 } 155 }
150 156
151 void InternalSettings::setCSSStickyPositionEnabled(bool enabled) 157 void InternalSettings::setCSSStickyPositionEnabled(bool enabled)
152 { 158 {
153 RuntimeEnabledFeatures::setCSSStickyPositionEnabled(enabled); 159 RuntimeEnabledFeatures::setCSSStickyPositionEnabled(enabled);
154 } 160 }
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 settings()->setLogPreload(enabled); 482 settings()->setLogPreload(enabled);
477 } 483 }
478 484
479 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState& exceptionState) 485 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState& exceptionState)
480 { 486 {
481 InternalSettingsGuardForSettings(); 487 InternalSettingsGuardForSettings();
482 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); 488 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled);
483 } 489 }
484 490
485 } // namespace blink 491 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698