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

Unified Diff: Source/bindings/v8/RuntimeEnabledFeatures.h

Issue 14254007: Web MIDI: Add a run-time flag in blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make func names consistent 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/src/WebRuntimeFeatures.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/RuntimeEnabledFeatures.h
diff --git a/Source/bindings/v8/RuntimeEnabledFeatures.h b/Source/bindings/v8/RuntimeEnabledFeatures.h
index 32bd973bd84061f0ae10aff148ba51df3efdd2c8..9647b0c82f77e25a5955f7a6a4ad0a8c9b84260e 100644
--- a/Source/bindings/v8/RuntimeEnabledFeatures.h
+++ b/Source/bindings/v8/RuntimeEnabledFeatures.h
@@ -132,6 +132,9 @@ public:
static bool webkitOfflineAudioContextEnabled() { return isWebAudioEnabled; }
#endif
+ static void setWebMIDIEnabled(bool isEnabled) { isWebMIDIEnabled = isEnabled; }
+ static bool webMIDIEnabled() { return isWebMIDIEnabled; }
+
static bool touchEnabled() { return isTouchEnabled; }
static void setTouchEnabled(bool isEnabled) { isTouchEnabled = isEnabled; }
@@ -259,6 +262,7 @@ private:
static bool isGeolocationEnabled;
static bool isIndexedDBEnabled;
static bool isWebAudioEnabled;
+ static bool isWebMIDIEnabled;
static bool isTouchEnabled;
static bool isDeviceMotionEnabled;
static bool isDeviceOrientationEnabled;
« no previous file with comments | « Source/WebKit/chromium/src/WebRuntimeFeatures.cpp ('k') | Source/bindings/v8/RuntimeEnabledFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698