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

Side by Side Diff: content/browser/android/media_player_manager_android.h

Issue 11442056: Add external surface rendering mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separated GLRenderer change out; refined messaging scheme. Created 7 years, 10 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
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 CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_
6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ 6 #define CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void OnEnterFullscreen(int player_id); 69 void OnEnterFullscreen(int player_id);
70 void OnExitFullscreen(int player_id); 70 void OnExitFullscreen(int player_id);
71 void OnInitialize(int player_id, const std::string& url, 71 void OnInitialize(int player_id, const std::string& url,
72 const std::string& first_party_for_cookies); 72 const std::string& first_party_for_cookies);
73 void OnStart(int player_id); 73 void OnStart(int player_id);
74 void OnSeek(int player_id, base::TimeDelta time); 74 void OnSeek(int player_id, base::TimeDelta time);
75 void OnPause(int player_id); 75 void OnPause(int player_id);
76 void OnReleaseResources(int player_id); 76 void OnReleaseResources(int player_id);
77 void OnDestroyPlayer(int player_id); 77 void OnDestroyPlayer(int player_id);
78 78
79 // Helper methods
80 void ExitFromVideoView(int player_id, bool pause);
81
79 // An array of managed players. 82 // An array of managed players.
80 ScopedVector<media::MediaPlayerBridge> players_; 83 ScopedVector<media::MediaPlayerBridge> players_;
81 84
82 // The fullscreen video view object. 85 // The fullscreen video view object.
83 ContentVideoView video_view_; 86 ContentVideoView video_view_;
84 87
85 // Player ID of the fullscreen media player. 88 // Player ID of the media player that uses video view.
86 int fullscreen_player_id_; 89 int video_view_player_id_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); 91 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid);
89 }; 92 };
90 93
91 } // namespace content 94 } // namespace content
92 95
93 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ 96 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_video_view.cc ('k') | content/browser/android/media_player_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698