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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.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/Source/modules/remoteplayback/RemotePlayback.h
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
index f8b4371dc86d40b9035f2bc4b601937b206d9f05..0023126ffa00c538d67abe51105fe0aa9261ec42 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.h
@@ -11,6 +11,7 @@
#include "core/events/EventTarget.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
+#include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h"
#include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
#include "public/platform/modules/remoteplayback/WebRemotePlaybackState.h"
#include "wtf/Compiler.h"
@@ -84,8 +85,9 @@ class MODULES_EXPORT RemotePlayback final
// WebRemotePlaybackClient implementation.
void stateChanged(WebRemotePlaybackState) override;
- void availabilityChanged(bool available) override;
+ void availabilityChanged(WebRemotePlaybackAvailability) override;
void promptCancelled() override;
+ bool remotePlaybackAvailable() const override;
// Prevent v8 from garbage collecting the availability callbacks.
// TODO(avayvod): remove when crbug.com/468240 is fixed and the references
@@ -94,7 +96,7 @@ class MODULES_EXPORT RemotePlayback final
const v8::Persistent<v8::Object>& wrapper);
WebRemotePlaybackState m_state;
- bool m_availability;
+ WebRemotePlaybackAvailability m_availability;
HeapHashMap<int, TraceWrapperMember<RemotePlaybackAvailabilityCallback>>
m_availabilityCallbacks;
Member<HTMLMediaElement> m_mediaElement;

Powered by Google App Engine
This is Rietveld 408576698