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

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

Issue 1415683009: Support earliest seekable time in WMPI. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more androidfixes. Created 5 years, 1 month 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 | « media/base/pipeline.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // True if the loaded media has a playable video/audio track. 107 // True if the loaded media has a playable video/audio track.
108 bool hasVideo() const override; 108 bool hasVideo() const override;
109 bool hasAudio() const override; 109 bool hasAudio() const override;
110 110
111 // Dimensions of the video. 111 // Dimensions of the video.
112 blink::WebSize naturalSize() const override; 112 blink::WebSize naturalSize() const override;
113 113
114 // Getters of playback state. 114 // Getters of playback state.
115 bool paused() const override; 115 bool paused() const override;
116 bool seeking() const override; 116 bool seeking() const override;
117 double earliestTime() const override;
117 double duration() const override; 118 double duration() const override;
118 virtual double timelineOffset() const; 119 virtual double timelineOffset() const;
119 double currentTime() const override; 120 double currentTime() const override;
120 121
121 // Internal states of loading and network. 122 // Internal states of loading and network.
122 // TODO(hclam): Ask the pipeline about the state rather than having reading 123 // TODO(hclam): Ask the pipeline about the state rather than having reading
123 // them from members which would cause race conditions. 124 // them from members which would cause race conditions.
124 blink::WebMediaPlayer::NetworkState networkState() const override; 125 blink::WebMediaPlayer::NetworkState networkState() const override;
125 blink::WebMediaPlayer::ReadyState readyState() const override; 126 blink::WebMediaPlayer::ReadyState readyState() const override;
126 127
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; 343 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_;
343 344
344 scoped_ptr<RendererFactory> renderer_factory_; 345 scoped_ptr<RendererFactory> renderer_factory_;
345 346
346 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 347 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
347 }; 348 };
348 349
349 } // namespace media 350 } // namespace media
350 351
351 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 352 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/pipeline.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698