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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void WebRuntimeFeatures::enableXSLT(bool enable) 283 void WebRuntimeFeatures::enableXSLT(bool enable)
284 { 284 {
285 RuntimeEnabledFeatures::setXSLTEnabled(enable); 285 RuntimeEnabledFeatures::setXSLTEnabled(enable);
286 } 286 }
287 287
288 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) 288 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable)
289 { 289 {
290 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable); 290 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable);
291 } 291 }
292 292
293 void WebRuntimeFeatures::enableHideScrollbars(bool enable)
294 {
295 RuntimeEnabledFeatures::setHideScrollbarsEnabled(enable);
296 }
297
298 void WebRuntimeFeatures::forceOverlayFullscreenVideo(bool enable) 293 void WebRuntimeFeatures::forceOverlayFullscreenVideo(bool enable)
299 { 294 {
300 RuntimeEnabledFeatures::setForceOverlayFullscreenVideoEnabled(enable); 295 RuntimeEnabledFeatures::setForceOverlayFullscreenVideoEnabled(enable);
301 } 296 }
302 297
303 void WebRuntimeFeatures::enableSharedWorker(bool enable) 298 void WebRuntimeFeatures::enableSharedWorker(bool enable)
304 { 299 {
305 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 300 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
306 } 301 }
307 302
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 { 394 {
400 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 395 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
401 } 396 }
402 397
403 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le) 398 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(bool enab le)
404 { 399 {
405 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able); 400 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(en able);
406 } 401 }
407 402
408 } // namespace blink 403 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698