OLD | NEW |
---|---|
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 #include "public/platform/WebCommon.h" | |
9 | |
8 namespace blink { | 10 namespace blink { |
9 | 11 |
10 enum class WebRemotePlaybackState; | 12 enum class WebRemotePlaybackState; |
11 | 13 |
12 // The interface between the HTMLMediaElement and its | 14 // The interface between the HTMLMediaElement and its |
13 // HTMLMediaElementRemotePlayback supplement. | 15 // HTMLMediaElementRemotePlayback supplement. |
14 class WebRemotePlaybackClient { | 16 class BLINK_PLATFORM_EXPORT WebRemotePlaybackClient { |
mlamouri (slow - plz ping)
2016/10/06 10:55:38
Just saw that you did this. Why exporting somethin
whywhat
2016/10/06 18:18:48
Because I didn't remember NON_EXPORTED_BASE ?
| |
15 public: | 17 public: |
16 virtual ~WebRemotePlaybackClient() = default; | 18 virtual ~WebRemotePlaybackClient() = default; |
17 | 19 |
18 // Notifies the client that the media element state has changed. | 20 // Notifies the client that the media element state has changed. |
19 virtual void stateChanged(WebRemotePlaybackState) = 0; | 21 virtual void stateChanged(WebRemotePlaybackState) = 0; |
20 | 22 |
21 // Notifies the client of the remote playback device availability change. | 23 // Notifies the client of the remote playback device availability change. |
22 virtual void availabilityChanged(bool availability) = 0; | 24 virtual void availabilityChanged(bool availability) = 0; |
23 | 25 |
24 // 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. |
25 virtual void promptCancelled() = 0; | 27 virtual void promptCancelled() = 0; |
26 }; | 28 }; |
27 | 29 |
28 } // namespace blink | 30 } // namespace blink |
29 | 31 |
30 #endif // WebRemotePlaybackState_h | 32 #endif // WebRemotePlaybackState_h |
OLD | NEW |