| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void pause() override; | 104 void pause() override; |
| 105 void seek(double seconds) override; | 105 void seek(double seconds) override; |
| 106 bool supportsSave() const override; | 106 bool supportsSave() const override; |
| 107 void setRate(double rate) override; | 107 void setRate(double rate) override; |
| 108 void setVolume(double volume) override; | 108 void setVolume(double volume) override; |
| 109 void setSinkId(const blink::WebString& sink_id, | 109 void setSinkId(const blink::WebString& sink_id, |
| 110 const blink::WebSecurityOrigin& security_origin, | 110 const blink::WebSecurityOrigin& security_origin, |
| 111 blink::WebSetSinkIdCallbacks* web_callback) override; | 111 blink::WebSetSinkIdCallbacks* web_callback) override; |
| 112 void requestRemotePlayback() override; | 112 void requestRemotePlayback() override; |
| 113 void requestRemotePlaybackControl() override; | 113 void requestRemotePlaybackControl() override; |
| 114 void requestRemotePlaybackStop() override; |
| 114 blink::WebTimeRanges buffered() const override; | 115 blink::WebTimeRanges buffered() const override; |
| 115 blink::WebTimeRanges seekable() const override; | 116 blink::WebTimeRanges seekable() const override; |
| 116 | 117 |
| 117 // Poster image, as defined in the <video> element. | 118 // Poster image, as defined in the <video> element. |
| 118 void setPoster(const blink::WebURL& poster) override; | 119 void setPoster(const blink::WebURL& poster) override; |
| 119 | 120 |
| 120 // Methods for painting. | 121 // Methods for painting. |
| 121 // FIXME: This path "only works" on Android. It is a workaround for the | 122 // 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 | 123 // 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. | 124 // internally. It should be removed and replaced by the normal paint path. |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 | 424 |
| 424 // NOTE: Weak pointers must be invalidated before all other member variables. | 425 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 425 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 426 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 426 | 427 |
| 427 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 428 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 428 }; | 429 }; |
| 429 | 430 |
| 430 } // namespace content | 431 } // namespace content |
| 431 | 432 |
| 432 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 433 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |