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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 unsigned int level, | 137 unsigned int level, |
138 unsigned int internal_format, | 138 unsigned int internal_format, |
139 unsigned int type, | 139 unsigned int type, |
140 bool premultiply_alpha, | 140 bool premultiply_alpha, |
141 bool flip_y); | 141 bool flip_y); |
142 | 142 |
143 // True if the loaded media has a playable video/audio track. | 143 // True if the loaded media has a playable video/audio track. |
144 virtual bool hasVideo() const; | 144 virtual bool hasVideo() const; |
145 virtual bool hasAudio() const; | 145 virtual bool hasAudio() const; |
146 | 146 |
| 147 virtual bool isRemote() const; |
| 148 |
147 // Dimensions of the video. | 149 // Dimensions of the video. |
148 virtual blink::WebSize naturalSize() const; | 150 virtual blink::WebSize naturalSize() const; |
149 | 151 |
150 // Getters of playback state. | 152 // Getters of playback state. |
151 virtual bool paused() const; | 153 virtual bool paused() const; |
152 virtual bool seeking() const; | 154 virtual bool seeking() const; |
153 virtual double duration() const; | 155 virtual double duration() const; |
154 virtual double timelineOffset() const; | 156 virtual double timelineOffset() const; |
155 virtual double currentTime() const; | 157 virtual double currentTime() const; |
156 | 158 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 506 |
505 // NOTE: Weak pointers must be invalidated before all other member variables. | 507 // NOTE: Weak pointers must be invalidated before all other member variables. |
506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 508 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
507 | 509 |
508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 510 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
509 }; | 511 }; |
510 | 512 |
511 } // namespace content | 513 } // namespace content |
512 | 514 |
513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 515 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |