OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void addTextTrack(WebInbandTextTrack*) = 0; | 87 virtual void addTextTrack(WebInbandTextTrack*) = 0; |
88 virtual void removeTextTrack(WebInbandTextTrack*) = 0; | 88 virtual void removeTextTrack(WebInbandTextTrack*) = 0; |
89 virtual void mediaSourceOpened(WebMediaSource*) = 0; | 89 virtual void mediaSourceOpened(WebMediaSource*) = 0; |
90 virtual void requestSeek(double) = 0; | 90 virtual void requestSeek(double) = 0; |
91 virtual void remoteRouteAvailabilityChanged( | 91 virtual void remoteRouteAvailabilityChanged( |
92 WebRemotePlaybackAvailability) = 0; | 92 WebRemotePlaybackAvailability) = 0; |
93 virtual void connectedToRemoteDevice() = 0; | 93 virtual void connectedToRemoteDevice() = 0; |
94 virtual void disconnectedFromRemoteDevice() = 0; | 94 virtual void disconnectedFromRemoteDevice() = 0; |
95 virtual void cancelledRemotePlaybackRequest() = 0; | 95 virtual void cancelledRemotePlaybackRequest() = 0; |
96 virtual void remotePlaybackStarted() = 0; | 96 virtual void remotePlaybackStarted() = 0; |
| 97 virtual void wasPausedWhenBackgrounded() = 0; |
| 98 virtual void wasResumedWhenForegrounded() = 0; |
97 | 99 |
98 // After the monitoring is activated, the client will inform WebMediaPlayer | 100 // After the monitoring is activated, the client will inform WebMediaPlayer |
99 // when the element becomes/stops being the dominant visible content by | 101 // when the element becomes/stops being the dominant visible content by |
100 // calling WebMediaPlayer::becameDominantVisibleContent(bool). | 102 // calling WebMediaPlayer::becameDominantVisibleContent(bool). |
101 virtual void activateViewportIntersectionMonitoring(bool) {} | 103 virtual void activateViewportIntersectionMonitoring(bool) {} |
102 | 104 |
103 // Returns whether the media element is in an autoplay muted state. | 105 // Returns whether the media element is in an autoplay muted state. |
104 virtual bool isAutoplayingMuted() = 0; | 106 virtual bool isAutoplayingMuted() = 0; |
105 | 107 |
106 // Warning: This method will destruct the caller. | 108 // Warning: This method will destruct the caller. |
107 virtual void requestReload(const WebURL& newUrl) = 0; | 109 virtual void requestReload(const WebURL& newUrl) = 0; |
108 | 110 |
109 // Returns if there's a selected video track. | 111 // Returns if there's a selected video track. |
110 virtual bool hasSelectedVideoTrack() = 0; | 112 virtual bool hasSelectedVideoTrack() = 0; |
111 | 113 |
112 // Returns the selected video track id (or an empty id if there's none). | 114 // Returns the selected video track id (or an empty id if there's none). |
113 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0; | 115 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0; |
114 | 116 |
| 117 // Returns if the background video playback was unlocked by user gesture. |
| 118 virtual bool isBackgroundVideoPlaybackUnlocked() = 0; |
| 119 |
115 protected: | 120 protected: |
116 ~WebMediaPlayerClient() {} | 121 ~WebMediaPlayerClient() {} |
117 }; | 122 }; |
118 | 123 |
119 } // namespace blink | 124 } // namespace blink |
120 | 125 |
121 #endif | 126 #endif |
OLD | NEW |