| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 CORSMode cors_mode); | 92 CORSMode cors_mode); |
| 93 | 93 |
| 94 // Playback controls. | 94 // Playback controls. |
| 95 virtual void play(); | 95 virtual void play(); |
| 96 virtual void pause(); | 96 virtual void pause(); |
| 97 virtual void seek(double seconds); | 97 virtual void seek(double seconds); |
| 98 virtual bool supportsSave() const; | 98 virtual bool supportsSave() const; |
| 99 virtual void setRate(double rate); | 99 virtual void setRate(double rate); |
| 100 virtual void setVolume(double volume); | 100 virtual void setVolume(double volume); |
| 101 virtual const blink::WebTimeRanges& buffered(); | 101 virtual const blink::WebTimeRanges& buffered(); |
| 102 virtual blink::WebTimeRanges buffered() const; |
| 102 virtual double maxTimeSeekable() const; | 103 virtual double maxTimeSeekable() const; |
| 103 | 104 |
| 104 // Poster image, as defined in the <video> element. | 105 // Poster image, as defined in the <video> element. |
| 105 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; | 106 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; |
| 106 | 107 |
| 107 // Methods for painting. | 108 // Methods for painting. |
| 108 virtual void paint(blink::WebCanvas* canvas, | 109 virtual void paint(blink::WebCanvas* canvas, |
| 109 const blink::WebRect& rect, | 110 const blink::WebRect& rect, |
| 110 unsigned char alpha); | 111 unsigned char alpha); |
| 111 | 112 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 448 |
| 448 // NOTE: Weak pointers must be invalidated before all other member variables. | 449 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 449 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 450 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 450 | 451 |
| 451 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 452 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 452 }; | 453 }; |
| 453 | 454 |
| 454 } // namespace content | 455 } // namespace content |
| 455 | 456 |
| 456 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 457 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |