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

Side by Side Diff: third_party/WebKit/public/platform/modules/remoteplayback/WebRemotePlaybackClient.h

Issue 2890633003: [Blink,RemotePlayback] Use PresentationController for availability (Closed)
Patch Set: Limited to Blink only, rebased Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemotePlaybackClient_h 5 #ifndef WebRemotePlaybackClient_h
6 #define WebRemotePlaybackClient_h 6 #define WebRemotePlaybackClient_h
7 7
8 namespace blink { 8 namespace blink {
9 9
10 enum class WebRemotePlaybackAvailability; 10 enum class WebRemotePlaybackAvailability;
11 enum class WebRemotePlaybackState; 11 enum class WebRemotePlaybackState;
12 class WebURL;
12 13
13 // The interface between the HTMLMediaElement and its 14 // The interface between the HTMLMediaElement and its
14 // HTMLMediaElementRemotePlayback supplement. 15 // HTMLMediaElementRemotePlayback supplement.
15 class WebRemotePlaybackClient { 16 class WebRemotePlaybackClient {
16 public: 17 public:
17 virtual ~WebRemotePlaybackClient() = default; 18 virtual ~WebRemotePlaybackClient() = default;
18 19
19 // Notifies the client that the media element state has changed. 20 // Notifies the client that the media element state has changed.
20 virtual void StateChanged(WebRemotePlaybackState) = 0; 21 virtual void StateChanged(WebRemotePlaybackState) = 0;
21 22
22 // Notifies the client of the remote playback device availability change. 23 // Notifies the client of the remote playback device availability change.
23 virtual void AvailabilityChanged(WebRemotePlaybackAvailability) = 0; 24 virtual void AvailabilityChanged(WebRemotePlaybackAvailability) = 0;
24 25
25 // Notifies the client that the user cancelled the prompt shown via the API. 26 // Notifies the client that the user cancelled the prompt shown via the API.
26 virtual void PromptCancelled() = 0; 27 virtual void PromptCancelled() = 0;
27 28
28 // Returns if the remote playback available for this media element. 29 // Returns if the remote playback available for this media element.
29 virtual bool RemotePlaybackAvailable() const = 0; 30 virtual bool RemotePlaybackAvailable() const = 0;
31
32 // Notifies the client that the source of the HTMLMediaElement has changed.
33 virtual void SourceChanged(const WebURL&) = 0;
mark a. foltz 2017/05/31 21:16:41 What if the media element has multiple <source>s?
30 }; 34 };
31 35
32 } // namespace blink 36 } // namespace blink
33 37
34 #endif // WebRemotePlaybackState_h 38 #endif // WebRemotePlaybackState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698