Chromium Code Reviews| 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. | |
|
liberato (no reviews please)
2017/02/22 18:28:20
i like these new semantics better. might want to
mlamouri (slow - plz ping)
2017/02/22 19:23:26
I agree. Updated :)
| |
| 121 virtual void SetIsFullscreen(int player_id, bool is_fullscreen) = 0; | |
| 122 | |
| 119 protected: | 123 protected: |
| 120 WebMediaPlayerDelegate() = default; | 124 WebMediaPlayerDelegate() = default; |
| 121 virtual ~WebMediaPlayerDelegate() = default; | 125 virtual ~WebMediaPlayerDelegate() = default; |
| 122 }; | 126 }; |
| 123 | 127 |
| 124 } // namespace media | 128 } // namespace media |
| 125 | 129 |
| 126 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ | 130 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_DELEGATE_H_ |
| OLD | NEW |