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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 41123002: Request video element to enter fullscreen when playing protected content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Called to update the current time. 168 // Called to update the current time.
169 void OnTimeUpdate(const base::TimeDelta& current_time); 169 void OnTimeUpdate(const base::TimeDelta& current_time);
170 170
171 // Functions called when media player status changes. 171 // Functions called when media player status changes.
172 void OnConnectedToRemoteDevice(); 172 void OnConnectedToRemoteDevice();
173 void OnDisconnectedFromRemoteDevice(); 173 void OnDisconnectedFromRemoteDevice();
174 void OnDidEnterFullscreen(); 174 void OnDidEnterFullscreen();
175 void OnDidExitFullscreen(); 175 void OnDidExitFullscreen();
176 void OnMediaPlayerPlay(); 176 void OnMediaPlayerPlay();
177 void OnMediaPlayerPause(); 177 void OnMediaPlayerPause();
178 void OnRequestFullscreen();
178 179
179 // Called when the player is released. 180 // Called when the player is released.
180 virtual void OnPlayerReleased(); 181 virtual void OnPlayerReleased();
181 182
182 // This function is called by the RendererMediaPlayerManager to pause the 183 // This function is called by the RendererMediaPlayerManager to pause the
183 // video and release the media player and surface texture when we switch tabs. 184 // video and release the media player and surface texture when we switch tabs.
184 // However, the actual GlTexture is not released to keep the video screenshot. 185 // However, the actual GlTexture is not released to keep the video screenshot.
185 virtual void ReleaseMediaResources(); 186 virtual void ReleaseMediaResources();
186 187
187 // Method inherited from DestructionObserver. 188 // Method inherited from DestructionObserver.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 scoped_ptr<ProxyDecryptor> decryptor_; 448 scoped_ptr<ProxyDecryptor> decryptor_;
448 449
449 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 450 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
450 451
451 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 452 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
452 }; 453 };
453 454
454 } // namespace content 455 } // namespace content
455 456
456 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 457 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698