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 MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const ReleaseMediaResourcesCB& release_media_resources_cb); | 52 const ReleaseMediaResourcesCB& release_media_resources_cb); |
53 virtual ~MediaPlayerBridge(); | 53 virtual ~MediaPlayerBridge(); |
54 | 54 |
55 // Initialize this object and extract the metadata from the media. | 55 // Initialize this object and extract the metadata from the media. |
56 virtual void Initialize(); | 56 virtual void Initialize(); |
57 | 57 |
58 // MediaPlayerAndroid implementation. | 58 // MediaPlayerAndroid implementation. |
59 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; | 59 virtual void SetVideoSurface(gfx::ScopedJavaSurface surface) OVERRIDE; |
60 virtual void Start() OVERRIDE; | 60 virtual void Start() OVERRIDE; |
61 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE; | 61 virtual void Pause(bool is_media_related_action ALLOW_UNUSED) OVERRIDE; |
62 virtual void SeekTo(const base::TimeDelta& timestamp) OVERRIDE; | 62 virtual void SeekTo(base::TimeDelta timestamp) OVERRIDE; |
63 virtual void Release() OVERRIDE; | 63 virtual void Release() OVERRIDE; |
64 virtual void SetVolume(double volume) OVERRIDE; | 64 virtual void SetVolume(double volume) OVERRIDE; |
65 virtual int GetVideoWidth() OVERRIDE; | 65 virtual int GetVideoWidth() OVERRIDE; |
66 virtual int GetVideoHeight() OVERRIDE; | 66 virtual int GetVideoHeight() OVERRIDE; |
67 virtual base::TimeDelta GetCurrentTime() OVERRIDE; | 67 virtual base::TimeDelta GetCurrentTime() OVERRIDE; |
68 virtual base::TimeDelta GetDuration() OVERRIDE; | 68 virtual base::TimeDelta GetDuration() OVERRIDE; |
69 virtual bool IsPlaying() OVERRIDE; | 69 virtual bool IsPlaying() OVERRIDE; |
70 virtual bool CanPause() OVERRIDE; | 70 virtual bool CanPause() OVERRIDE; |
71 virtual bool CanSeekForward() OVERRIDE; | 71 virtual bool CanSeekForward() OVERRIDE; |
72 virtual bool CanSeekBackward() OVERRIDE; | 72 virtual bool CanSeekBackward() OVERRIDE; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Whether player is currently using a surface. | 177 // Whether player is currently using a surface. |
178 bool is_surface_in_use_; | 178 bool is_surface_in_use_; |
179 | 179 |
180 friend class MediaPlayerListener; | 180 friend class MediaPlayerListener; |
181 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); | 181 DISALLOW_COPY_AND_ASSIGN(MediaPlayerBridge); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace media | 184 } // namespace media |
185 | 185 |
186 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ | 186 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_BRIDGE_H_ |
OLD | NEW |