Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: webkit/glue/webmediaplayer_impl.h

Issue 169010: Framework to display disabled mute button when audio fails.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 // 4 //
5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome'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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual float maxTimeBuffered() const; 176 virtual float maxTimeBuffered() const;
177 virtual float maxTimeSeekable() const; 177 virtual float maxTimeSeekable() const;
178 178
179 // Methods for painting. 179 // Methods for painting.
180 virtual void setSize(const WebKit::WebSize& size); 180 virtual void setSize(const WebKit::WebSize& size);
181 181
182 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); 182 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
183 183
184 // True if a video is loaded. 184 // True if a video is loaded.
185 virtual bool hasVideo() const; 185 virtual bool hasVideo() const;
186 virtual bool hasAudio() const;
186 187
187 // Dimensions of the video. 188 // Dimensions of the video.
188 virtual WebKit::WebSize naturalSize() const; 189 virtual WebKit::WebSize naturalSize() const;
189 190
190 // Getters of playback state. 191 // Getters of playback state.
191 virtual bool paused() const; 192 virtual bool paused() const;
192 virtual bool seeking() const; 193 virtual bool seeking() const;
193 virtual float duration() const; 194 virtual float duration() const;
194 virtual float currentTime() const; 195 virtual float currentTime() const;
195 196
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 WebKit::WebMediaPlayerClient* client_; 268 WebKit::WebMediaPlayerClient* client_;
268 269
269 scoped_refptr<Proxy> proxy_; 270 scoped_refptr<Proxy> proxy_;
270 271
271 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 272 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
272 }; 273 };
273 274
274 } // namespace webkit_glue 275 } // namespace webkit_glue
275 276
276 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_ 277 #endif // WEBKIT_GLUE_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698