Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: media/blink/webmediaplayer_delegate.h

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: apply review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_unittest.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698