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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Playback controls. | 105 // Playback controls. |
106 virtual void play(); | 106 virtual void play(); |
107 virtual void pause(); | 107 virtual void pause(); |
108 virtual void seek(double seconds); | 108 virtual void seek(double seconds); |
109 virtual bool supportsSave() const; | 109 virtual bool supportsSave() const; |
110 virtual void setRate(double rate); | 110 virtual void setRate(double rate); |
111 virtual void setVolume(double volume); | 111 virtual void setVolume(double volume); |
112 virtual void requestRemotePlayback(); | 112 virtual void requestRemotePlayback(); |
113 virtual void requestRemotePlaybackControl(); | 113 virtual void requestRemotePlaybackControl(); |
114 virtual blink::WebTimeRanges buffered() const; | 114 virtual blink::WebTimeRanges buffered() const; |
115 virtual double maxTimeSeekable() const; | 115 virtual blink::WebTimeRanges seekable() const; |
116 | 116 |
117 // Poster image, as defined in the <video> element. | 117 // Poster image, as defined in the <video> element. |
118 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; | 118 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; |
119 | 119 |
120 // Methods for painting. | 120 // Methods for painting. |
121 // FIXME: This path "only works" on Android. It is a workaround for the | 121 // FIXME: This path "only works" on Android. It is a workaround for the |
122 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture | 122 // issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture |
123 // internally. It should be removed and replaced by the normal paint path. | 123 // internally. It should be removed and replaced by the normal paint path. |
124 // https://code.google.com/p/skia/issues/detail?id=1189 | 124 // https://code.google.com/p/skia/issues/detail?id=1189 |
125 virtual void paint(blink::WebCanvas* canvas, | 125 virtual void paint(blink::WebCanvas* canvas, |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 504 |
505 // NOTE: Weak pointers must be invalidated before all other member variables. | 505 // NOTE: Weak pointers must be invalidated before all other member variables. |
506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 506 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
507 | 507 |
508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 508 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
509 }; | 509 }; |
510 | 510 |
511 } // namespace content | 511 } // namespace content |
512 | 512 |
513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 513 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |