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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_RENDERER_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "content/common/media/media_player_messages_enums_android.h" 14 #include "content/common/media/media_player_messages_enums_android.h"
15 #include "content/public/renderer/render_view_observer.h" 15 #include "content/public/renderer/render_view_observer.h"
16 #include "media/base/android/media_player_android.h" 16 #include "media/base/android/media_player_android.h"
17 #include "media/base/media_keys.h" 17 #include "media/base/media_keys.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 #if defined(GOOGLE_TV) 20 #if defined(GOOGLE_TV)
21 #include "ui/gfx/rect_f.h" 21 #include "ui/gfx/rect_f.h"
22 #endif 22 #endif
23 23
24 namespace WebKit { 24 namespace blink {
25 class WebFrame; 25 class WebFrame;
26 } 26 }
27 27
28 namespace gfx { 28 namespace gfx {
29 class RectF; 29 class RectF;
30 } 30 }
31 31
32 namespace content { 32 namespace content {
33 33
34 class ProxyMediaKeys; 34 class ProxyMediaKeys;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // object already registered for this id, and it is unregistered when the 110 // object already registered for this id, and it is unregistered when the
111 // player is unregistered. For now |media_keys_id| is the same as player_id 111 // player is unregistered. For now |media_keys_id| is the same as player_id
112 // used in other methods. 112 // used in other methods.
113 void RegisterMediaKeys(int media_keys_id, ProxyMediaKeys* media_keys); 113 void RegisterMediaKeys(int media_keys_id, ProxyMediaKeys* media_keys);
114 114
115 // Releases the media resources managed by this object when a video 115 // Releases the media resources managed by this object when a video
116 // is playing. 116 // is playing.
117 void ReleaseVideoResources(); 117 void ReleaseVideoResources();
118 118
119 // Checks whether a player can enter fullscreen. 119 // Checks whether a player can enter fullscreen.
120 bool CanEnterFullscreen(WebKit::WebFrame* frame); 120 bool CanEnterFullscreen(blink::WebFrame* frame);
121 121
122 // Called when a player entered or exited fullscreen. 122 // Called when a player entered or exited fullscreen.
123 void DidEnterFullscreen(WebKit::WebFrame* frame); 123 void DidEnterFullscreen(blink::WebFrame* frame);
124 void DidExitFullscreen(); 124 void DidExitFullscreen();
125 125
126 // Checks whether the Webframe is in fullscreen. 126 // Checks whether the Webframe is in fullscreen.
127 bool IsInFullscreen(WebKit::WebFrame* frame); 127 bool IsInFullscreen(blink::WebFrame* frame);
128 128
129 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|. 129 // Gets the pointer to WebMediaPlayerAndroid given the |player_id|.
130 WebMediaPlayerAndroid* GetMediaPlayer(int player_id); 130 WebMediaPlayerAndroid* GetMediaPlayer(int player_id);
131 131
132 // Gets the pointer to ProxyMediaKeys given the |media_keys_id|. 132 // Gets the pointer to ProxyMediaKeys given the |media_keys_id|.
133 ProxyMediaKeys* GetMediaKeys(int media_keys_id); 133 ProxyMediaKeys* GetMediaKeys(int media_keys_id);
134 134
135 #if defined(GOOGLE_TV) 135 #if defined(GOOGLE_TV)
136 // Gets the list of media players with video geometry changes. 136 // Gets the list of media players with video geometry changes.
137 void RetrieveGeometryChanges(std::map<int, gfx::RectF>* changes); 137 void RetrieveGeometryChanges(std::map<int, gfx::RectF>* changes);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // we can enumerate them to send updates about tab focus and visibility. 172 // we can enumerate them to send updates about tab focus and visibility.
173 std::map<int, WebMediaPlayerAndroid*> media_players_; 173 std::map<int, WebMediaPlayerAndroid*> media_players_;
174 174
175 // Info for all available ProxyMediaKeys. There must be at most one 175 // Info for all available ProxyMediaKeys. There must be at most one
176 // ProxyMediaKeys for each available WebMediaPlayerAndroid. 176 // ProxyMediaKeys for each available WebMediaPlayerAndroid.
177 std::map<int, ProxyMediaKeys*> media_keys_; 177 std::map<int, ProxyMediaKeys*> media_keys_;
178 178
179 int next_media_player_id_; 179 int next_media_player_id_;
180 180
181 // WebFrame of the fullscreen video. 181 // WebFrame of the fullscreen video.
182 WebKit::WebFrame* fullscreen_frame_; 182 blink::WebFrame* fullscreen_frame_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager); 184 DISALLOW_COPY_AND_ASSIGN(RendererMediaPlayerManager);
185 }; 185 };
186 186
187 } // namespace content 187 } // namespace content
188 188
189 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_ 189 #endif // CONTENT_RENDERER_MEDIA_ANDROID_RENDERER_MEDIA_PLAYER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698