| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 class WebMediaPlayer; | 9 class WebMediaPlayer; |
| 10 } | 10 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // without an additional idle timeout. | 109 // without an additional idle timeout. |
| 110 // TODO(sandersd): This exists only to support WMPI's didLoadingProgress() | 110 // TODO(sandersd): This exists only to support WMPI's didLoadingProgress() |
| 111 // workaround. A better option may be to take a 'minimum idle' duration in | 111 // workaround. A better option may be to take a 'minimum idle' duration in |
| 112 // SetIdle(). | 112 // SetIdle(). |
| 113 virtual void ClearStaleFlag(int player_id) = 0; | 113 virtual void ClearStaleFlag(int player_id) = 0; |
| 114 | 114 |
| 115 // Returns |true| if the player is stale; that is that OnIdleTimeout() was | 115 // Returns |true| if the player is stale; that is that OnIdleTimeout() was |
| 116 // called and returned |true|. | 116 // called and returned |true|. |
| 117 virtual bool IsStale(int player_id) = 0; | 117 virtual bool IsStale(int player_id) = 0; |
| 118 | 118 |
| 119 // Notifies the delegate that the player has entered fullscreen. This does not |
| 120 // differentiate native controls fullscreen and custom controls fullscreen. |
| 121 virtual void SetIsEffectivelyFullscreen(int player_id, |
| 122 bool is_fullscreen) = 0; |
| 123 |
| 119 protected: | 124 protected: |
| 120 WebMediaPlayerDelegate() = default; | 125 WebMediaPlayerDelegate() = default; |
| 121 virtual ~WebMediaPlayerDelegate() = default; | 126 virtual ~WebMediaPlayerDelegate() = default; |
| 122 }; | 127 }; |
| 123 | 128 |
| 124 } // namespace media | 129 } // namespace media |
| 125 | 130 |
| 126 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ | 131 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| OLD | NEW |