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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.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 | « no previous file | content/renderer/media/android/webmediaplayer_android.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 CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // True if the loaded media has a playable video/audio track. 147 // True if the loaded media has a playable video/audio track.
148 virtual bool hasVideo() const; 148 virtual bool hasVideo() const;
149 virtual bool hasAudio() const; 149 virtual bool hasAudio() const;
150 150
151 virtual bool isRemote() const; 151 virtual bool isRemote() const;
152 152
153 // Dimensions of the video. 153 // Dimensions of the video.
154 virtual blink::WebSize naturalSize() const; 154 virtual blink::WebSize naturalSize() const;
155 155
156 // Getters of playback state. 156 // Getters of playback state.
157 virtual bool paused() const; 157 bool paused() const override;
158 virtual bool seeking() const; 158 bool seeking() const override;
159 virtual double duration() const; 159 double earliestTime() const override;
160 virtual double timelineOffset() const; 160 double duration() const override;
161 virtual double currentTime() const; 161 virtual timelineOffset() const;
162 double currentTime() const override;
162 163
163 virtual bool didLoadingProgress(); 164 virtual bool didLoadingProgress();
164 165
165 // Internal states of loading and network. 166 // Internal states of loading and network.
166 virtual blink::WebMediaPlayer::NetworkState networkState() const; 167 virtual blink::WebMediaPlayer::NetworkState networkState() const;
167 virtual blink::WebMediaPlayer::ReadyState readyState() const; 168 virtual blink::WebMediaPlayer::ReadyState readyState() const;
168 169
169 virtual bool hasSingleSecurityOrigin() const; 170 virtual bool hasSingleSecurityOrigin() const;
170 virtual bool didPassCORSAccessCheck() const; 171 virtual bool didPassCORSAccessCheck() const;
171 172
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 532
532 // NOTE: Weak pointers must be invalidated before all other member variables. 533 // NOTE: Weak pointers must be invalidated before all other member variables.
533 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 534 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
534 535
535 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 536 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
536 }; 537 };
537 538
538 } // namespace content 539 } // namespace content
539 540
540 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 541 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698