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

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

Issue 13688004: Location/size change notification when external rendering is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put notification hook under ifdef's to minimize performance implication on other platforms Created 7 years, 8 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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/time.h" 13 #include "base/time.h"
14 #include "content/browser/android/content_video_view.h" 14 #include "content/browser/android/content_video_view.h"
15 #include "content/public/browser/render_view_host_observer.h" 15 #include "content/public/browser/render_view_host_observer.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "media/base/android/media_player_bridge.h" 17 #include "media/base/android/media_player_bridge.h"
18 #include "media/base/android/media_player_bridge_manager.h" 18 #include "media/base/android/media_player_bridge_manager.h"
19 #include "ui/gfx/rect_f.h"
19 20
20 namespace content { 21 namespace content {
21 22
22 class WebContents; 23 class WebContents;
23 24
24 // This class manages all the MediaPlayerBridge objects. It receives 25 // This class manages all the MediaPlayerBridge objects. It receives
25 // control operations from the the render process, and forwards 26 // control operations from the the render process, and forwards
26 // them to corresponding MediaPlayerBridge object. Callbacks from 27 // them to corresponding MediaPlayerBridge object. Callbacks from
27 // MediaPlayerBridge objects are converted to IPCs and then sent to the 28 // MediaPlayerBridge objects are converted to IPCs and then sent to the
28 // render process. 29 // render process.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void OnEnterFullscreen(int player_id); 76 void OnEnterFullscreen(int player_id);
76 void OnExitFullscreen(int player_id); 77 void OnExitFullscreen(int player_id);
77 void OnInitialize(int player_id, const GURL& url, 78 void OnInitialize(int player_id, const GURL& url,
78 const GURL& first_party_for_cookies); 79 const GURL& first_party_for_cookies);
79 void OnStart(int player_id); 80 void OnStart(int player_id);
80 void OnSeek(int player_id, base::TimeDelta time); 81 void OnSeek(int player_id, base::TimeDelta time);
81 void OnPause(int player_id); 82 void OnPause(int player_id);
82 void OnReleaseResources(int player_id); 83 void OnReleaseResources(int player_id);
83 void OnDestroyPlayer(int player_id); 84 void OnDestroyPlayer(int player_id);
84 void OnRequestExternalSurface(int player_id); 85 void OnRequestExternalSurface(int player_id);
86 void OnNotifyGeometryChange(int player_id, gfx::RectF rect);
palmer 2013/04/05 18:05:15 Is it possible to pass a reference instead?
wonsik 2013/04/08 04:39:22 Done.
85 87
86 // An array of managed players. 88 // An array of managed players.
87 ScopedVector<media::MediaPlayerBridge> players_; 89 ScopedVector<media::MediaPlayerBridge> players_;
88 90
89 // The fullscreen video view object. 91 // The fullscreen video view object.
90 ContentVideoView video_view_; 92 ContentVideoView video_view_;
91 93
92 // Player ID of the fullscreen media player. 94 // Player ID of the fullscreen media player.
93 int fullscreen_player_id_; 95 int fullscreen_player_id_;
94 96
95 WebContents* web_contents_; 97 WebContents* web_contents_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid); 99 DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid);
98 }; 100 };
99 101
100 } // namespace content 102 } // namespace content
101 103
102 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_ 104 #endif // CONTENT_BROWSER_ANDROID_MEDIA_PLAYER_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698