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

Side by Side Diff: webkit/media/android/webmediaplayer_android.h

Issue 15499006: Enable seek in fullscreen mode for MSE impl on android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add CancelPendingSeek() Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // cc::VideoFrameProvider implementation. These methods are running on the 141 // cc::VideoFrameProvider implementation. These methods are running on the
142 // compositor thread. 142 // compositor thread.
143 virtual void SetVideoFrameProviderClient( 143 virtual void SetVideoFrameProviderClient(
144 cc::VideoFrameProvider::Client* client) OVERRIDE; 144 cc::VideoFrameProvider::Client* client) OVERRIDE;
145 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; 145 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE;
146 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) 146 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame)
147 OVERRIDE; 147 OVERRIDE;
148 148
149 // Media player callback handlers. 149 // Media player callback handlers.
150 virtual void OnMediaMetadataChanged(base::TimeDelta duration, int width, 150 void OnMediaMetadataChanged(base::TimeDelta duration, int width,
151 int height, bool success); 151 int height, bool success);
152 virtual void OnPlaybackComplete(); 152 void OnPlaybackComplete();
153 virtual void OnBufferingUpdate(int percentage); 153 void OnBufferingUpdate(int percentage);
154 virtual void OnSeekComplete(base::TimeDelta current_time); 154 void OnSeekComplete(base::TimeDelta current_time);
155 virtual void OnMediaError(int error_type); 155 void OnMediaError(int error_type);
156 virtual void OnVideoSizeChanged(int width, int height); 156 void OnVideoSizeChanged(int width, int height);
157 void OnMediaSeekRequest(base::TimeDelta time_to_seek,
158 bool request_texture_peer);
157 159
158 // Called to update the current time. 160 // Called to update the current time.
159 virtual void OnTimeUpdate(base::TimeDelta current_time); 161 void OnTimeUpdate(base::TimeDelta current_time);
160 162
161 // Functions called when media player status changes. 163 // Functions called when media player status changes.
162 void OnMediaPlayerPlay(); 164 void OnMediaPlayerPlay();
163 void OnMediaPlayerPause(); 165 void OnMediaPlayerPause();
164 void OnDidEnterFullscreen(); 166 void OnDidEnterFullscreen();
165 void OnDidExitFullscreen(); 167 void OnDidExitFullscreen();
166 168
167 // Called when the player is released. 169 // Called when the player is released.
168 virtual void OnPlayerReleased(); 170 virtual void OnPlayerReleased();
169 171
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 double current_time_; 319 double current_time_;
318 320
319 media::MediaLog* media_log_; 321 media::MediaLog* media_log_;
320 322
321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 323 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
322 }; 324 };
323 325
324 } // namespace webkit_media 326 } // namespace webkit_media
325 327
326 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 328 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698