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

Side by Side Diff: media/base/android/media_player_manager.h

Issue 378543002: Skip to enter the fullscreen automatically when hole-punching is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed xhwang's comments. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/android/demuxer_stream_player_params.h" 10 #include "media/base/android/demuxer_stream_player_params.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0; 58 virtual void OnVideoSizeChanged(int player_id, int width, int height) = 0;
59 59
60 // Returns the player that's in the fullscreen mode currently. 60 // Returns the player that's in the fullscreen mode currently.
61 virtual MediaPlayerAndroid* GetFullscreenPlayer() = 0; 61 virtual MediaPlayerAndroid* GetFullscreenPlayer() = 0;
62 62
63 // Returns the player with the specified id. 63 // Returns the player with the specified id.
64 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0; 64 virtual MediaPlayerAndroid* GetPlayer(int player_id) = 0;
65 65
66 // Called by the player to get a hardware protected surface. 66 // Called by the player to get a hardware protected surface.
67 virtual void RequestFullScreen(int player_id) = 0; 67 virtual void RequestFullScreen(int player_id) = 0;
68
69 // Returns true if a media player should use video-overlay for the embedded
70 // encrypted video.
71 virtual bool ShouldUseVideoOverlayForEmbeddedEncryptedVideo() = 0;
68 }; 72 };
69 73
70 } // namespace media 74 } // namespace media
71 75
72 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 76 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698