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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

Issue 2480063002: Split NativeThemeAura into Overlay and NonOverlay versions. (Closed)
Patch Set: Fix Created 4 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 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 void WebRuntimeFeatures::enableOriginTrials(bool enable) { 177 void WebRuntimeFeatures::enableOriginTrials(bool enable) {
178 RuntimeEnabledFeatures::setOriginTrialsEnabled(enable); 178 RuntimeEnabledFeatures::setOriginTrialsEnabled(enable);
179 } 179 }
180 180
181 bool WebRuntimeFeatures::isOriginTrialsEnabled() { 181 bool WebRuntimeFeatures::isOriginTrialsEnabled() {
182 return RuntimeEnabledFeatures::originTrialsEnabled(); 182 return RuntimeEnabledFeatures::originTrialsEnabled();
183 } 183 }
184 184
185 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) {
186 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable);
187 }
188
189 bool WebRuntimeFeatures::isOverlayScrollbarsEnabled() {
190 return RuntimeEnabledFeatures::overlayScrollbarsEnabled();
191 }
192
185 void WebRuntimeFeatures::enablePagePopup(bool enable) { 193 void WebRuntimeFeatures::enablePagePopup(bool enable) {
186 RuntimeEnabledFeatures::setPagePopupEnabled(enable); 194 RuntimeEnabledFeatures::setPagePopupEnabled(enable);
187 } 195 }
188 196
189 void WebRuntimeFeatures::enableMiddleClickAutoscroll(bool enable) { 197 void WebRuntimeFeatures::enableMiddleClickAutoscroll(bool enable) {
190 RuntimeEnabledFeatures::setMiddleClickAutoscrollEnabled(enable); 198 RuntimeEnabledFeatures::setMiddleClickAutoscrollEnabled(enable);
191 } 199 }
192 200
193 void WebRuntimeFeatures::enableParseHTMLOnMainThread(bool enable) { 201 void WebRuntimeFeatures::enableParseHTMLOnMainThread(bool enable) {
194 RuntimeEnabledFeatures::setParseHTMLOnMainThreadEnabled(enable); 202 RuntimeEnabledFeatures::setParseHTMLOnMainThreadEnabled(enable);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 247 }
240 248
241 void WebRuntimeFeatures::enableWebGLImageChromium(bool enable) { 249 void WebRuntimeFeatures::enableWebGLImageChromium(bool enable) {
242 RuntimeEnabledFeatures::setWebGLImageChromiumEnabled(enable); 250 RuntimeEnabledFeatures::setWebGLImageChromiumEnabled(enable);
243 } 251 }
244 252
245 void WebRuntimeFeatures::enableXSLT(bool enable) { 253 void WebRuntimeFeatures::enableXSLT(bool enable) {
246 RuntimeEnabledFeatures::setXSLTEnabled(enable); 254 RuntimeEnabledFeatures::setXSLTEnabled(enable);
247 } 255 }
248 256
249 void WebRuntimeFeatures::enableOverlayScrollbars(bool enable) {
250 RuntimeEnabledFeatures::setOverlayScrollbarsEnabled(enable);
251 }
252
253 void WebRuntimeFeatures::forceOverlayFullscreenVideo(bool enable) { 257 void WebRuntimeFeatures::forceOverlayFullscreenVideo(bool enable) {
254 RuntimeEnabledFeatures::setForceOverlayFullscreenVideoEnabled(enable); 258 RuntimeEnabledFeatures::setForceOverlayFullscreenVideoEnabled(enable);
255 } 259 }
256 260
257 void WebRuntimeFeatures::enableSharedArrayBuffer(bool enable) { 261 void WebRuntimeFeatures::enableSharedArrayBuffer(bool enable) {
258 RuntimeEnabledFeatures::setSharedArrayBufferEnabled(enable); 262 RuntimeEnabledFeatures::setSharedArrayBufferEnabled(enable);
259 } 263 }
260 264
261 void WebRuntimeFeatures::enableSharedWorker(bool enable) { 265 void WebRuntimeFeatures::enableSharedWorker(bool enable) {
262 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 266 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); 348 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable);
345 } 349 }
346 350
347 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( 351 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType(
348 bool enable) { 352 bool enable) {
349 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( 353 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
350 enable); 354 enable);
351 } 355 }
352 356
353 } // namespace blink 357 } // namespace blink
OLDNEW
« no previous file with comments | « content/child/webthemeengine_impl_default.cc ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698