Commit aed57269 authored by guidou's avatar guidou Committed by Commit bot

Unflag the MediaDevices devicechange event in Blink.

The feature is still disabled on Android because SystemMonitor is not
yet supported on that platform.

Intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/s-w44wOMzqs

BUG=585096

Review-Url: https://codereview.chromium.org/2547563002
Cr-Commit-Position: refs/heads/master@{#436324}
parent af2c8d1e
...@@ -42,6 +42,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() { ...@@ -42,6 +42,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
// Android does not yet support switching of audio output devices // Android does not yet support switching of audio output devices
WebRuntimeFeatures::enableAudioOutputDevices(false); WebRuntimeFeatures::enableAudioOutputDevices(false);
WebRuntimeFeatures::enableAutoplayMutedVideos(true); WebRuntimeFeatures::enableAutoplayMutedVideos(true);
// Android does not yet support SystemMonitor.
WebRuntimeFeatures::enableOnDeviceChange(false);
#else #else
WebRuntimeFeatures::enableNavigatorContentUtils(true); WebRuntimeFeatures::enableNavigatorContentUtils(true);
#endif // defined(OS_ANDROID) #endif // defined(OS_ANDROID)
......
...@@ -3171,10 +3171,12 @@ interface MediaDeviceInfo ...@@ -3171,10 +3171,12 @@ interface MediaDeviceInfo
method toJSON method toJSON
interface MediaDevices : EventTarget interface MediaDevices : EventTarget
attribute @@toStringTag attribute @@toStringTag
getter ondevicechange
method constructor method constructor
method enumerateDevices method enumerateDevices
method getSupportedConstraints method getSupportedConstraints
method getUserMedia method getUserMedia
setter ondevicechange
interface MediaElementAudioSourceNode : AudioSourceNode interface MediaElementAudioSourceNode : AudioSourceNode
attribute @@toStringTag attribute @@toStringTag
getter mediaElement getter mediaElement
......
...@@ -3228,10 +3228,12 @@ interface MediaDeviceInfo ...@@ -3228,10 +3228,12 @@ interface MediaDeviceInfo
method toJSON method toJSON
interface MediaDevices : EventTarget interface MediaDevices : EventTarget
attribute @@toStringTag attribute @@toStringTag
getter ondevicechange
method constructor method constructor
method enumerateDevices method enumerateDevices
method getSupportedConstraints method getSupportedConstraints
method getUserMedia method getUserMedia
setter ondevicechange
interface MediaElementAudioSourceNode : AudioSourceNode interface MediaElementAudioSourceNode : AudioSourceNode
attribute @@toStringTag attribute @@toStringTag
getter mediaElement getter mediaElement
......
...@@ -155,7 +155,7 @@ NotificationBadge status=stable ...@@ -155,7 +155,7 @@ NotificationBadge status=stable
NotificationContentImage status=stable NotificationContentImage status=stable
NotificationInlineReplies status=experimental NotificationInlineReplies status=experimental
Notifications status=stable Notifications status=stable
OnDeviceChange status=experimental OnDeviceChange status=stable
OrientationEvent OrientationEvent
OriginTrials status=stable OriginTrials status=stable
// Define a sample API for testing integration with the Origin Trials Framework. // Define a sample API for testing integration with the Origin Trials Framework.
......
...@@ -178,6 +178,10 @@ void WebRuntimeFeatures::enableNetworkInformation(bool enable) { ...@@ -178,6 +178,10 @@ void WebRuntimeFeatures::enableNetworkInformation(bool enable) {
RuntimeEnabledFeatures::setNetworkInformationEnabled(enable); RuntimeEnabledFeatures::setNetworkInformationEnabled(enable);
} }
void WebRuntimeFeatures::enableOnDeviceChange(bool enable) {
RuntimeEnabledFeatures::setOnDeviceChangeEnabled(enable);
}
void WebRuntimeFeatures::enableOrientationEvent(bool enable) { void WebRuntimeFeatures::enableOrientationEvent(bool enable) {
RuntimeEnabledFeatures::setOrientationEventEnabled(enable); RuntimeEnabledFeatures::setOrientationEventEnabled(enable);
} }
......
...@@ -92,6 +92,7 @@ class WebRuntimeFeatures { ...@@ -92,6 +92,7 @@ class WebRuntimeFeatures {
BLINK_EXPORT static void enableNotificationConstructor(bool); BLINK_EXPORT static void enableNotificationConstructor(bool);
BLINK_EXPORT static void enableNotificationContentImage(bool); BLINK_EXPORT static void enableNotificationContentImage(bool);
BLINK_EXPORT static void enableNotifications(bool); BLINK_EXPORT static void enableNotifications(bool);
BLINK_EXPORT static void enableOnDeviceChange(bool);
BLINK_EXPORT static void enableOrientationEvent(bool); BLINK_EXPORT static void enableOrientationEvent(bool);
BLINK_EXPORT static void enableOverlayScrollbars(bool); BLINK_EXPORT static void enableOverlayScrollbars(bool);
BLINK_EXPORT static void enablePagePopup(bool); BLINK_EXPORT static void enablePagePopup(bool);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment