| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 virtual void OnBecamePersistentVideo(bool) = 0; | 100 virtual void OnBecamePersistentVideo(bool) = 0; |
| 101 | 101 |
| 102 // After the monitoring is activated, the client will inform WebMediaPlayer | 102 // After the monitoring is activated, the client will inform WebMediaPlayer |
| 103 // when the element becomes/stops being the dominant visible content by | 103 // when the element becomes/stops being the dominant visible content by |
| 104 // calling WebMediaPlayer::becameDominantVisibleContent(bool). | 104 // calling WebMediaPlayer::becameDominantVisibleContent(bool). |
| 105 virtual void ActivateViewportIntersectionMonitoring(bool) {} | 105 virtual void ActivateViewportIntersectionMonitoring(bool) {} |
| 106 | 106 |
| 107 // Returns whether the media element is in an autoplay muted state. | 107 // Returns whether the media element is in an autoplay muted state. |
| 108 virtual bool IsAutoplayingMuted() = 0; | 108 virtual bool IsAutoplayingMuted() = 0; |
| 109 | 109 |
| 110 // Warning: This method will destruct the caller. | |
| 111 virtual void RequestReload(const WebURL& new_url) = 0; | |
| 112 | |
| 113 // Returns if there's a selected video track. | 110 // Returns if there's a selected video track. |
| 114 virtual bool HasSelectedVideoTrack() = 0; | 111 virtual bool HasSelectedVideoTrack() = 0; |
| 115 | 112 |
| 116 // Returns the selected video track id (or an empty id if there's none). | 113 // Returns the selected video track id (or an empty id if there's none). |
| 117 virtual WebMediaPlayer::TrackId GetSelectedVideoTrackId() = 0; | 114 virtual WebMediaPlayer::TrackId GetSelectedVideoTrackId() = 0; |
| 118 | 115 |
| 119 // Informs that media starts/stops being rendered and played back remotely. | 116 // Informs that media starts/stops being rendered and played back remotely. |
| 120 virtual void MediaRemotingStarted() {} | 117 virtual void MediaRemotingStarted() {} |
| 121 virtual void MediaRemotingStopped() {} | 118 virtual void MediaRemotingStopped() {} |
| 122 | 119 |
| 123 protected: | 120 protected: |
| 124 ~WebMediaPlayerClient() {} | 121 ~WebMediaPlayerClient() {} |
| 125 }; | 122 }; |
| 126 | 123 |
| 127 } // namespace blink | 124 } // namespace blink |
| 128 | 125 |
| 129 #endif | 126 #endif |
| OLD | NEW |