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

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 599103003: Switch from WebMediaPlayer::maxTimeSeekable() to seekable() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile on android Created 6 years, 2 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
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Playback controls. 77 // Playback controls.
78 virtual void play(); 78 virtual void play();
79 virtual void pause(); 79 virtual void pause();
80 virtual bool supportsSave() const; 80 virtual bool supportsSave() const;
81 virtual void seek(double seconds); 81 virtual void seek(double seconds);
82 virtual void setRate(double rate); 82 virtual void setRate(double rate);
83 virtual void setVolume(double volume); 83 virtual void setVolume(double volume);
84 virtual void setPreload(blink::WebMediaPlayer::Preload preload); 84 virtual void setPreload(blink::WebMediaPlayer::Preload preload);
85 virtual blink::WebTimeRanges buffered() const; 85 virtual blink::WebTimeRanges buffered() const;
86 virtual double maxTimeSeekable() const; 86 virtual blink::WebTimeRanges seekable() const;
87 87
88 // Methods for painting. 88 // Methods for painting.
89 virtual void paint(blink::WebCanvas* canvas, 89 virtual void paint(blink::WebCanvas* canvas,
90 const blink::WebRect& rect, 90 const blink::WebRect& rect,
91 unsigned char alpha, 91 unsigned char alpha,
92 SkXfermode::Mode mode); 92 SkXfermode::Mode mode);
93 // TODO(dshwang): remove it because above method replaces. crbug.com/401027 93 // TODO(dshwang): remove it because above method replaces. crbug.com/401027
94 virtual void paint(blink::WebCanvas* canvas, 94 virtual void paint(blink::WebCanvas* canvas,
95 const blink::WebRect& rect, 95 const blink::WebRect& rect,
96 unsigned char alpha); 96 unsigned char alpha);
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_; 308 scoped_ptr<EncryptedMediaPlayerSupport> encrypted_media_support_;
309 309
310 const AudioHardwareConfig& audio_hardware_config_; 310 const AudioHardwareConfig& audio_hardware_config_;
311 311
312 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 312 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
313 }; 313 };
314 314
315 } // namespace media 315 } // namespace media
316 316
317 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 317 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698