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

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

Issue 66023004: Allow Web Animations flags to be turned off as well as on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void WebRuntimeFeatures::enableTouch(bool enable) 342 void WebRuntimeFeatures::enableTouch(bool enable)
343 { 343 {
344 RuntimeEnabledFeatures::setTouchEnabled(enable); 344 RuntimeEnabledFeatures::setTouchEnabled(enable);
345 } 345 }
346 346
347 bool WebRuntimeFeatures::isTouchEnabled() 347 bool WebRuntimeFeatures::isTouchEnabled()
348 { 348 {
349 return RuntimeEnabledFeatures::touchEnabled(); 349 return RuntimeEnabledFeatures::touchEnabled();
350 } 350 }
351 351
352 void WebRuntimeFeatures::enableWebAnimationsCSS() 352 void WebRuntimeFeatures::enableWebAnimationsCSS(bool enable)
353 { 353 {
354 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); 354 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat ures::webAnimationsSVGEnabled());
355 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true); 355 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(enable);
356 } 356 }
357 357
358 void WebRuntimeFeatures::enableWebAnimationsSVG() 358 void WebRuntimeFeatures::enableWebAnimationsSVG(bool enable)
359 { 359 {
360 RuntimeEnabledFeatures::setWebAnimationsEnabled(true); 360 RuntimeEnabledFeatures::setWebAnimationsEnabled(enable || RuntimeEnabledFeat ures::webAnimationsCSSEnabled());
361 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true); 361 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(enable);
362 } 362 }
363 363
364 void WebRuntimeFeatures::enableWebAudio(bool enable) 364 void WebRuntimeFeatures::enableWebAudio(bool enable)
365 { 365 {
366 RuntimeEnabledFeatures::setWebAudioEnabled(enable); 366 RuntimeEnabledFeatures::setWebAudioEnabled(enable);
367 } 367 }
368 368
369 bool WebRuntimeFeatures::isWebAudioEnabled() 369 bool WebRuntimeFeatures::isWebAudioEnabled()
370 { 370 {
371 return RuntimeEnabledFeatures::webAudioEnabled(); 371 return RuntimeEnabledFeatures::webAudioEnabled();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 { 440 {
441 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 441 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
442 } 442 }
443 443
444 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) 444 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable)
445 { 445 {
446 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); 446 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable);
447 } 447 }
448 448
449 } // namespace blink 449 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698