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

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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Add API to WebMediaPlayerClient. Created 4 years 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_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 // Called from WebMediaPlayerCast. 214 // Called from WebMediaPlayerCast.
215 // TODO(hubbe): WMPI_CAST make private. 215 // TODO(hubbe): WMPI_CAST make private.
216 void OnPipelineSeeked(bool time_updated); 216 void OnPipelineSeeked(bool time_updated);
217 217
218 // Restart the player/pipeline as soon as possible. This will destroy the 218 // Restart the player/pipeline as soon as possible. This will destroy the
219 // current renderer, if any, and create a new one via the RendererFactory; and 219 // current renderer, if any, and create a new one via the RendererFactory; and
220 // then seek to resume playback at the current position. 220 // then seek to resume playback at the current position.
221 void ScheduleRestart(); 221 void ScheduleRestart();
222 222
223 // Called when media starts/stops being displayed remotely.
224 void OnRemoteDisplayChanged(bool is_displayed_remotely);
miu 2016/12/10 02:18:37 naming nit: s/rendering/display/ in method name, a
xjz 2016/12/12 18:58:45 Done.
225
223 // Distinct states that |delegate_| can be in. 226 // Distinct states that |delegate_| can be in.
224 // TODO(sandersd): This should move into WebMediaPlayerDelegate. 227 // TODO(sandersd): This should move into WebMediaPlayerDelegate.
225 // (Public for testing.) 228 // (Public for testing.)
226 enum class DelegateState { 229 enum class DelegateState {
227 GONE, 230 GONE,
228 PLAYING, 231 PLAYING,
229 PAUSED, 232 PAUSED,
230 ENDED, 233 ENDED,
231 }; 234 };
232 235
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 581
579 // Whether the player is currently in autoplay muted state. 582 // Whether the player is currently in autoplay muted state.
580 bool autoplay_muted_ = false; 583 bool autoplay_muted_ = false;
581 584
582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 585 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
583 }; 586 };
584 587
585 } // namespace media 588 } // namespace media
586 589
587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 590 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698