OLD | NEW |
---|---|
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 void OnStart(int player_id); | 80 void OnStart(int player_id); |
81 void OnSeek(int player_id, base::TimeDelta time); | 81 void OnSeek(int player_id, base::TimeDelta time); |
82 void OnPause(int player_id); | 82 void OnPause(int player_id); |
83 void OnReleaseResources(int player_id); | 83 void OnReleaseResources(int player_id); |
84 void OnDestroyPlayer(int player_id); | 84 void OnDestroyPlayer(int player_id); |
85 void OnRequestExternalSurface(int player_id); | 85 void OnRequestExternalSurface(int player_id); |
86 | 86 |
87 // An array of managed players. | 87 // An array of managed players. |
88 ScopedVector<media::MediaPlayerBridge> players_; | 88 ScopedVector<media::MediaPlayerBridge> players_; |
89 | 89 |
90 // The fullscreen video view object. | 90 // The fullscreen video view object. |
joth
2013/05/15 22:38:57
or null if... ?
michaelbai
2013/05/22 18:08:39
Done.
| |
91 ContentVideoView video_view_; | 91 scoped_ptr<ContentVideoView> video_view_; |
92 | 92 |
93 // Player ID of the fullscreen media player. | 93 // Player ID of the fullscreen media player. |
94 int fullscreen_player_id_; | 94 int fullscreen_player_id_; |
95 | 95 |
96 WebContents* web_contents_; | 96 WebContents* web_contents_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); | 98 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
102 | 102 |
103 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ | 103 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ |
OLD | NEW |