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

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

Issue 13674022: Remove MEDIA_SOURCE feature define. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@blink-master
Patch Set: Rebase Created 7 years, 8 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled(enable); 372 RuntimeEnabledFeatures::setWebkitFullScreenAPIEnabled(enable);
373 } 373 }
374 374
375 bool WebRuntimeFeatures::isFullScreenAPIEnabled() 375 bool WebRuntimeFeatures::isFullScreenAPIEnabled()
376 { 376 {
377 return RuntimeEnabledFeatures::webkitFullScreenAPIEnabled(); 377 return RuntimeEnabledFeatures::webkitFullScreenAPIEnabled();
378 } 378 }
379 379
380 void WebRuntimeFeatures::enableMediaSource(bool enable) 380 void WebRuntimeFeatures::enableMediaSource(bool enable)
381 { 381 {
382 #if ENABLE(MEDIA_SOURCE)
383 RuntimeEnabledFeatures::setMediaSourceEnabled(enable); 382 RuntimeEnabledFeatures::setMediaSourceEnabled(enable);
384 #else
385 UNUSED_PARAM(enable);
386 #endif
387 } 383 }
388 384
389 bool WebRuntimeFeatures::isMediaSourceEnabled() 385 bool WebRuntimeFeatures::isMediaSourceEnabled()
390 { 386 {
391 #if ENABLE(MEDIA_SOURCE)
392 return RuntimeEnabledFeatures::mediaSourceEnabled(); 387 return RuntimeEnabledFeatures::mediaSourceEnabled();
393 #else
394 return false;
395 #endif
396 } 388 }
397 389
398 void WebRuntimeFeatures::enableEncryptedMedia(bool enable) 390 void WebRuntimeFeatures::enableEncryptedMedia(bool enable)
399 { 391 {
400 #if ENABLE(ENCRYPTED_MEDIA) 392 #if ENABLE(ENCRYPTED_MEDIA)
401 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable); 393 RuntimeEnabledFeatures::setEncryptedMediaEnabled(enable);
402 #else 394 #else
403 UNUSED_PARAM(enable); 395 UNUSED_PARAM(enable);
404 #endif 396 #endif
405 } 397 }
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 bool WebRuntimeFeatures::isRequestAutocompleteEnabled() 712 bool WebRuntimeFeatures::isRequestAutocompleteEnabled()
721 { 713 {
722 #if ENABLE(REQUEST_AUTOCOMPLETE) 714 #if ENABLE(REQUEST_AUTOCOMPLETE)
723 return RuntimeEnabledFeatures::requestAutocompleteEnabled(); 715 return RuntimeEnabledFeatures::requestAutocompleteEnabled();
724 #else 716 #else
725 return false; 717 return false;
726 #endif 718 #endif
727 } 719 }
728 720
729 } // namespace WebKit 721 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebMediaSourceImpl.cpp ('k') | Tools/Scripts/webkitperl/FeatureList.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698