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

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 18854016: Add runtime flags for Web Animations CSS and SVG implementations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Turn on WebAnimations when WebAnimationsCSS/SVG is specified. Fix copy pasta. Created 7 years, 5 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 | Annotate | Revision Log
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 void WebRuntimeFeatures::enableTouch(bool enable) 324 void WebRuntimeFeatures::enableTouch(bool enable)
325 { 325 {
326 RuntimeEnabledFeatures::setTouchEnabled(enable); 326 RuntimeEnabledFeatures::setTouchEnabled(enable);
327 } 327 }
328 328
329 bool WebRuntimeFeatures::isTouchEnabled() 329 bool WebRuntimeFeatures::isTouchEnabled()
330 { 330 {
331 return RuntimeEnabledFeatures::touchEnabled(); 331 return RuntimeEnabledFeatures::touchEnabled();
332 } 332 }
333 333
334 void WebRuntimeFeatures::enableWebAnimationsCSS()
335 {
336 RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
337 RuntimeEnabledFeatures::setWebAnimationsCSSEnabled(true);
338 }
339
340 void WebRuntimeFeatures::enableWebAnimationsSVG()
341 {
342 RuntimeEnabledFeatures::setWebAnimationsEnabled(true);
343 RuntimeEnabledFeatures::setWebAnimationsSVGEnabled(true);
344 }
345
334 void WebRuntimeFeatures::enableWebAudio(bool enable) 346 void WebRuntimeFeatures::enableWebAudio(bool enable)
335 { 347 {
336 RuntimeEnabledFeatures::setWebAudioEnabled(enable); 348 RuntimeEnabledFeatures::setWebAudioEnabled(enable);
337 } 349 }
338 350
339 bool WebRuntimeFeatures::isWebAudioEnabled() 351 bool WebRuntimeFeatures::isWebAudioEnabled()
340 { 352 {
341 return RuntimeEnabledFeatures::webAudioEnabled(); 353 return RuntimeEnabledFeatures::webAudioEnabled();
342 } 354 }
343 355
(...skipping 21 matching lines...) Expand all
365 { 377 {
366 RuntimeEnabledFeatures::setDataListElementEnabled(enable); 378 RuntimeEnabledFeatures::setDataListElementEnabled(enable);
367 } 379 }
368 380
369 bool WebRuntimeFeatures::isDataListElementEnabled() 381 bool WebRuntimeFeatures::isDataListElementEnabled()
370 { 382 {
371 return RuntimeEnabledFeatures::dataListElementEnabled(); 383 return RuntimeEnabledFeatures::dataListElementEnabled();
372 } 384 }
373 385
374 } // namespace WebKit 386 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | public/web/WebRuntimeFeatures.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698