| 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 <string> | 10 #include <string> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 bool enable_texture_copy, | 98 bool enable_texture_copy, |
| 99 const media::WebMediaPlayerParams& params); | 99 const media::WebMediaPlayerParams& params); |
| 100 ~WebMediaPlayerAndroid() override; | 100 ~WebMediaPlayerAndroid() override; |
| 101 | 101 |
| 102 // blink::WebMediaPlayer implementation. | 102 // blink::WebMediaPlayer implementation. |
| 103 bool supportsOverlayFullscreenVideo() override; | 103 bool supportsOverlayFullscreenVideo() override; |
| 104 void enteredFullscreen() override; | 104 void enteredFullscreen() override; |
| 105 | 105 |
| 106 // Resource loading. | 106 // Resource loading. |
| 107 void load(LoadType load_type, | 107 void load(LoadType load_type, |
| 108 const blink::WebURL& url, | 108 const blink::WebMediaElementSource& source, |
| 109 CORSMode cors_mode) override; | 109 CORSMode cors_mode) override; |
| 110 | 110 |
| 111 // Playback controls. | 111 // Playback controls. |
| 112 void play() override; | 112 void play() override; |
| 113 void pause() override; | 113 void pause() override; |
| 114 void seek(double seconds) override; | 114 void seek(double seconds) override; |
| 115 bool supportsSave() const override; | 115 bool supportsSave() const override; |
| 116 void setRate(double rate) override; | 116 void setRate(double rate) override; |
| 117 void setVolume(double volume) override; | 117 void setVolume(double volume) override; |
| 118 void setSinkId(const blink::WebString& sink_id, | 118 void setSinkId(const blink::WebString& sink_id, |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 | 515 |
| 516 // NOTE: Weak pointers must be invalidated before all other member variables. | 516 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 517 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 517 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 518 | 518 |
| 519 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 519 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 520 }; | 520 }; |
| 521 | 521 |
| 522 } // namespace content | 522 } // namespace content |
| 523 | 523 |
| 524 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 524 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |