| 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 19 matching lines...) Expand all Loading... |
| 30 #include "third_party/WebKit/public/platform/WebSize.h" | 30 #include "third_party/WebKit/public/platform/WebSize.h" |
| 31 #include "third_party/WebKit/public/platform/WebURL.h" | 31 #include "third_party/WebKit/public/platform/WebURL.h" |
| 32 #include "ui/gfx/rect_f.h" | 32 #include "ui/gfx/rect_f.h" |
| 33 | 33 |
| 34 namespace base { | 34 namespace base { |
| 35 class MessageLoopProxy; | 35 class MessageLoopProxy; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 class WebFrame; | 39 class WebFrame; |
| 40 class WebURL; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace gpu { | 43 namespace gpu { |
| 43 struct MailboxHolder; | 44 struct MailboxHolder; |
| 44 } | 45 } |
| 45 | 46 |
| 46 namespace media { | 47 namespace media { |
| 47 class MediaLog; | 48 class MediaLog; |
| 48 } | 49 } |
| 49 | 50 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Playback controls. | 94 // Playback controls. |
| 94 virtual void play(); | 95 virtual void play(); |
| 95 virtual void pause(); | 96 virtual void pause(); |
| 96 virtual void seek(double seconds); | 97 virtual void seek(double seconds); |
| 97 virtual bool supportsSave() const; | 98 virtual bool supportsSave() const; |
| 98 virtual void setRate(double rate); | 99 virtual void setRate(double rate); |
| 99 virtual void setVolume(double volume); | 100 virtual void setVolume(double volume); |
| 100 virtual const blink::WebTimeRanges& buffered(); | 101 virtual const blink::WebTimeRanges& buffered(); |
| 101 virtual double maxTimeSeekable() const; | 102 virtual double maxTimeSeekable() const; |
| 102 | 103 |
| 104 // Poster image, as defined in the <video> element. |
| 105 virtual void setPoster(const blink::WebURL& poster) OVERRIDE; |
| 106 |
| 103 // Methods for painting. | 107 // Methods for painting. |
| 104 virtual void paint(blink::WebCanvas* canvas, | 108 virtual void paint(blink::WebCanvas* canvas, |
| 105 const blink::WebRect& rect, | 109 const blink::WebRect& rect, |
| 106 unsigned char alpha); | 110 unsigned char alpha); |
| 107 | 111 |
| 108 virtual bool copyVideoTextureToPlatformTexture( | 112 virtual bool copyVideoTextureToPlatformTexture( |
| 109 blink::WebGraphicsContext3D* web_graphics_context, | 113 blink::WebGraphicsContext3D* web_graphics_context, |
| 110 unsigned int texture, | 114 unsigned int texture, |
| 111 unsigned int level, | 115 unsigned int level, |
| 112 unsigned int internal_format, | 116 unsigned int internal_format, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 scoped_ptr<ProxyDecryptor> proxy_decryptor_; | 442 scoped_ptr<ProxyDecryptor> proxy_decryptor_; |
| 439 | 443 |
| 440 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 444 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
| 441 | 445 |
| 442 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 446 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
| 443 }; | 447 }; |
| 444 | 448 |
| 445 } // namespace content | 449 } // namespace content |
| 446 | 450 |
| 447 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 451 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
| OLD | NEW |