OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |