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

Side by Side Diff: chrome/browser/media/android/remote/remote_media_player_bridge.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 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 CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 const std::string& user_agent, 28 const std::string& user_agent,
29 RemoteMediaPlayerManager* manager); 29 RemoteMediaPlayerManager* manager);
30 ~RemoteMediaPlayerBridge() override; 30 ~RemoteMediaPlayerBridge() override;
31 31
32 static bool RegisterRemoteMediaPlayerBridge(JNIEnv* env); 32 static bool RegisterRemoteMediaPlayerBridge(JNIEnv* env);
33 33
34 // Initialize this object. 34 // Initialize this object.
35 virtual void Initialize(); 35 virtual void Initialize();
36 36
37 // MediaPlayerAndroid implementation. 37 // MediaPlayerAndroid implementation.
38 void SetVideoSurface(gfx::ScopedJavaSurface surface) override; 38 void SetVideoSurface(gl::ScopedJavaSurface surface) override;
39 void Start() override; 39 void Start() override;
40 void Pause(bool is_media_related_action) override; 40 void Pause(bool is_media_related_action) override;
41 void SeekTo(base::TimeDelta timestamp) override; 41 void SeekTo(base::TimeDelta timestamp) override;
42 void Release() override; 42 void Release() override;
43 bool HasVideo() const override; 43 bool HasVideo() const override;
44 bool HasAudio() const override; 44 bool HasAudio() const override;
45 int GetVideoWidth() override; 45 int GetVideoWidth() override;
46 int GetVideoHeight() override; 46 int GetVideoHeight() override;
47 base::TimeDelta GetCurrentTime() override; 47 base::TimeDelta GetCurrentTime() override;
48 base::TimeDelta GetDuration() override; 48 base::TimeDelta GetDuration() override;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // NOTE: Weak pointers must be invalidated before all other member variables. 144 // NOTE: Weak pointers must be invalidated before all other member variables.
145 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_; 145 base::WeakPtrFactory<RemoteMediaPlayerBridge> weak_factory_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge); 147 DISALLOW_COPY_AND_ASSIGN(RemoteMediaPlayerBridge);
148 }; 148 };
149 149
150 } // namespace remote_media 150 } // namespace remote_media
151 151
152 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_ 152 #endif // CHROME_BROWSER_MEDIA_ANDROID_REMOTE_REMOTE_MEDIA_PLAYER_BRIDGE_H_
OLDNEW
« no previous file with comments | « cc/tiles/gpu_image_decode_controller.cc ('k') | chrome/browser/media/android/remote/remote_media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698