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 // Delegate calls from WebCore::MediaPlayerPrivate to google's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to google's video player. |
6 // It contains PipelineImpl which is the actual media player pipeline, it glues | 6 // It contains PipelineImpl which is the actual media player pipeline, it glues |
7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
8 // PipelineImpl would creates multiple threads and access some public methods | 8 // PipelineImpl would creates multiple threads and access some public methods |
9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
10 // methods and members. | 10 // methods and members. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void Pause(); | 77 virtual void Pause(); |
78 virtual void Stop(); | 78 virtual void Stop(); |
79 virtual void Seek(float time); | 79 virtual void Seek(float time); |
80 virtual void SetEndTime(float time); | 80 virtual void SetEndTime(float time); |
81 virtual void SetPlaybackRate(float rate); | 81 virtual void SetPlaybackRate(float rate); |
82 virtual void SetVolume(float volume); | 82 virtual void SetVolume(float volume); |
83 virtual void SetVisible(bool visible); | 83 virtual void SetVisible(bool visible); |
84 virtual bool IsTotalBytesKnown(); | 84 virtual bool IsTotalBytesKnown(); |
85 | 85 |
86 // Methods for painting. | 86 // Methods for painting. |
87 virtual void SetRect(const gfx::Rect& rect); | 87 virtual void SetSize(const gfx::Size& size); |
88 | 88 |
89 virtual void Paint(skia::PlatformCanvas *canvas, const gfx::Rect& rect); | 89 virtual void Paint(skia::PlatformCanvas *canvas, const gfx::Rect& rect); |
90 | 90 |
91 // True if a video is loaded. | 91 // True if a video is loaded. |
92 virtual bool IsVideo() const; | 92 virtual bool IsVideo() const; |
93 | 93 |
94 // Dimension of the video. | 94 // Dimension of the video. |
95 virtual size_t GetWidth() const; | 95 virtual size_t GetWidth() const; |
96 virtual size_t GetHeight() const; | 96 virtual size_t GetHeight() const; |
97 | 97 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // |main_loop_|. |tasks_| can be access from main thread or the media threads | 186 // |main_loop_|. |tasks_| can be access from main thread or the media threads |
187 // we need a lock for protecting it. | 187 // we need a lock for protecting it. |
188 Lock task_lock_; | 188 Lock task_lock_; |
189 typedef std::vector<CancelableTask*> CancelableTaskList; | 189 typedef std::vector<CancelableTask*> CancelableTaskList; |
190 CancelableTaskList tasks_; | 190 CancelableTaskList tasks_; |
191 | 191 |
192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegateImpl); | 192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerDelegateImpl); |
193 }; | 193 }; |
194 | 194 |
195 #endif // ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_ | 195 #endif // ifndef CHROME_RENDERER_WEBMEDIAPLAYER_DELEGATE_IMPL_H_ |
OLD | NEW |