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

Unified Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 14254007: Web MIDI: Add a run-time flag in blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/public/WebRuntimeFeatures.h ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
diff --git a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
index 6e016bb11495f86d54cd9ad70efd3526d1ca727c..544505941418f07c951720bdeda73b706ad3e2f1 100644
--- a/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
+++ b/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
@@ -570,4 +570,14 @@ bool WebRuntimeFeatures::isExperimentalWebSocketEnabled()
return RuntimeEnabledFeatures::experimentalWebSocketEnabled();
}
+void WebRuntimeFeatures::enableWebMIDI(bool enable)
+{
+ return RuntimeEnabledFeatures::setRequestMIDIAccessEnabled(enable);
tkent 2013/04/21 01:44:27 The flag names are inconsistent; 'WebMIDI' and 're
+}
+
+bool WebRuntimeFeatures::isWebMIDIEnabled()
+{
+ return RuntimeEnabledFeatures::requestMIDIAccessEnabled();
+}
+
} // namespace WebKit
« no previous file with comments | « Source/WebKit/chromium/public/WebRuntimeFeatures.h ('k') | Source/bindings/v8/RuntimeEnabledFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698