OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ | 5 #ifndef WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ |
6 #define WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ | 6 #define WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ |
7 | 7 |
8 #include "base/gfx/platform_canvas.h" | 8 #include "base/gfx/platform_canvas.h" |
9 #include "webkit/glue/weberror.h" | 9 #include "webkit/glue/weberror.h" |
10 #include "webkit/glue/webmediaplayer.h" | 10 #include "webkit/glue/webmediaplayer.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual void Seek(float time) = 0; | 36 virtual void Seek(float time) = 0; |
37 virtual void SetEndTime(float time) = 0; | 37 virtual void SetEndTime(float time) = 0; |
38 virtual void SetPlaybackRate(float rate) = 0; | 38 virtual void SetPlaybackRate(float rate) = 0; |
39 virtual void SetVolume(float volume) = 0; | 39 virtual void SetVolume(float volume) = 0; |
40 virtual void SetVisible(bool visible) = 0; | 40 virtual void SetVisible(bool visible) = 0; |
41 virtual bool IsTotalBytesKnown() = 0; | 41 virtual bool IsTotalBytesKnown() = 0; |
42 virtual float GetMaxTimeBuffered() const = 0; | 42 virtual float GetMaxTimeBuffered() const = 0; |
43 virtual float GetMaxTimeSeekable() const = 0; | 43 virtual float GetMaxTimeSeekable() const = 0; |
44 | 44 |
45 // Methods for painting. | 45 // Methods for painting. |
46 virtual void SetRect(const gfx::Rect& rect) = 0; | 46 virtual void SetSize(const gfx::Size& size) = 0; |
47 | 47 |
48 // TODO(hclam): Using paint at the moment, maybe we just need to return a | 48 // TODO(hclam): Using paint at the moment, maybe we just need to return a |
49 // SkiaBitmap? | 49 // SkiaBitmap? |
50 virtual void Paint(skia::PlatformCanvas *canvas, const gfx::Rect& rect) = 0; | 50 virtual void Paint(skia::PlatformCanvas *canvas, const gfx::Rect& rect) = 0; |
51 | 51 |
52 // True if a video is loaded. | 52 // True if a video is loaded. |
53 virtual bool IsVideo() const = 0; | 53 virtual bool IsVideo() const = 0; |
54 | 54 |
55 // Dimension of the video. | 55 // Dimension of the video. |
56 virtual size_t GetWidth() const = 0; | 56 virtual size_t GetWidth() const = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
74 virtual int64 GetBytesLoaded() const = 0; | 74 virtual int64 GetBytesLoaded() const = 0; |
75 virtual int64 GetTotalBytes() const = 0; | 75 virtual int64 GetTotalBytes() const = 0; |
76 | 76 |
77 private: | 77 private: |
78 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegate); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace webkit_glue | 81 } // namespace webkit_glue |
82 | 82 |
83 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ | 83 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_DELEGATE_H_ |
OLD | NEW |