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

Unified Diff: third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed the java enum comment Created 4 years, 1 month 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
Index: third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
diff --git a/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h b/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bc8f5f7cbb40771357eb600ac319229a8f31067
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebRemotePlaybackAvailability_h
+#define WebRemotePlaybackAvailability_h
+
+namespace blink {
+
+// GENERATED_JAVA_ENUM_PACKAGE: (
+// org.chromium.blink_public.platform.modules.remoteplayback)
+// Various states for the remote playback availability.
+enum class WebRemotePlaybackAvailability {
+ // The availability is unknown.
+ Unknown,
+
+ // The media source is not supported by the browser - device availability
+ // monitoring is unnecessary.
+ SourceNotSupported,
+
+ // The media source is compatible with some supported device types but
+ // no devices were found.
+ DeviceNotAvailable,
+
+ // There're available devices but the current media source is not compatible
+ // with any of those.
+ SourceNotCompatible,
+
+ // There're available remote playback devices and the media source is
+ // compatible with at least one of them.
+ DeviceAvailable,
+
+ Last = DeviceAvailable
+};
+
+} // namespace blink
+
+#endif // WebRemotePlaybackState_h

Powered by Google App Engine
This is Rietveld 408576698