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

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

Issue 2756553002: Force the video to go fullscreen when setting persistent video (Closed)
Patch Set: addressed nits Created 3 years, 9 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
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_unittest.cc ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void OnIdleTimeout() = 0; 47 virtual void OnIdleTimeout() = 0;
48 48
49 // Called when external controls are activated. 49 // Called when external controls are activated.
50 virtual void OnPlay() = 0; 50 virtual void OnPlay() = 0;
51 virtual void OnPause() = 0; 51 virtual void OnPause() = 0;
52 52
53 // Called to control audio ducking. Output volume should be set to 53 // Called to control audio ducking. Output volume should be set to
54 // |player_volume| * |multiplier|. The range of |multiplier| is [0, 1], 54 // |player_volume| * |multiplier|. The range of |multiplier| is [0, 1],
55 // where 1 indicates normal (non-ducked) playback. 55 // where 1 indicates normal (non-ducked) playback.
56 virtual void OnVolumeMultiplierUpdate(double multiplier) = 0; 56 virtual void OnVolumeMultiplierUpdate(double multiplier) = 0;
57
58 // Called to set as the persistent video. A persistent video should hide its
59 // controls and go fullscreen.
60 virtual void OnBecamePersistentVideo(bool value) = 0;
57 }; 61 };
58 62
59 // Returns true if the host frame is hidden or closed. 63 // Returns true if the host frame is hidden or closed.
60 virtual bool IsFrameHidden() = 0; 64 virtual bool IsFrameHidden() = 0;
61 65
62 // Returns true if the host frame is closed. 66 // Returns true if the host frame is closed.
63 virtual bool IsFrameClosed() = 0; 67 virtual bool IsFrameClosed() = 0;
64 68
65 // Subscribe to observer callbacks. A player must use the returned |player_id| 69 // Subscribe to observer callbacks. A player must use the returned |player_id|
66 // for the rest of the calls below. 70 // for the rest of the calls below.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool is_fullscreen) = 0; 122 bool is_fullscreen) = 0;
119 123
120 protected: 124 protected:
121 WebMediaPlayerDelegate() = default; 125 WebMediaPlayerDelegate() = default;
122 virtual ~WebMediaPlayerDelegate() = default; 126 virtual ~WebMediaPlayerDelegate() = default;
123 }; 127 };
124 128
125 } // namespace media 129 } // namespace media
126 130
127 #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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698