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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayerClient.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 | « third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void removeTextTrack(WebInbandTextTrack*) = 0; 88 virtual void removeTextTrack(WebInbandTextTrack*) = 0;
89 virtual void mediaSourceOpened(WebMediaSource*) = 0; 89 virtual void mediaSourceOpened(WebMediaSource*) = 0;
90 virtual void requestSeek(double) = 0; 90 virtual void requestSeek(double) = 0;
91 virtual void remoteRouteAvailabilityChanged( 91 virtual void remoteRouteAvailabilityChanged(
92 WebRemotePlaybackAvailability) = 0; 92 WebRemotePlaybackAvailability) = 0;
93 virtual void connectedToRemoteDevice() = 0; 93 virtual void connectedToRemoteDevice() = 0;
94 virtual void disconnectedFromRemoteDevice() = 0; 94 virtual void disconnectedFromRemoteDevice() = 0;
95 virtual void cancelledRemotePlaybackRequest() = 0; 95 virtual void cancelledRemotePlaybackRequest() = 0;
96 virtual void remotePlaybackStarted() = 0; 96 virtual void remotePlaybackStarted() = 0;
97 97
98 // Set the player as the persistent video. Persistent video should hide its
99 // controls and go fullscreen.
100 virtual void onBecamePersistentVideo(bool) = 0;
101
98 // After the monitoring is activated, the client will inform WebMediaPlayer 102 // After the monitoring is activated, the client will inform WebMediaPlayer
99 // when the element becomes/stops being the dominant visible content by 103 // when the element becomes/stops being the dominant visible content by
100 // calling WebMediaPlayer::becameDominantVisibleContent(bool). 104 // calling WebMediaPlayer::becameDominantVisibleContent(bool).
101 virtual void activateViewportIntersectionMonitoring(bool) {} 105 virtual void activateViewportIntersectionMonitoring(bool) {}
102 106
103 // Returns whether the media element is in an autoplay muted state. 107 // Returns whether the media element is in an autoplay muted state.
104 virtual bool isAutoplayingMuted() = 0; 108 virtual bool isAutoplayingMuted() = 0;
105 109
106 // Warning: This method will destruct the caller. 110 // Warning: This method will destruct the caller.
107 virtual void requestReload(const WebURL& newUrl) = 0; 111 virtual void requestReload(const WebURL& newUrl) = 0;
108 112
109 // Returns if there's a selected video track. 113 // Returns if there's a selected video track.
110 virtual bool hasSelectedVideoTrack() = 0; 114 virtual bool hasSelectedVideoTrack() = 0;
111 115
112 // Returns the selected video track id (or an empty id if there's none). 116 // Returns the selected video track id (or an empty id if there's none).
113 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0; 117 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0;
114 118
115 protected: 119 protected:
116 ~WebMediaPlayerClient() {} 120 ~WebMediaPlayerClient() {}
117 }; 121 };
118 122
119 } // namespace blink 123 } // namespace blink
120 124
121 #endif 125 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElementPersistentVideoTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698