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

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: addressing comments 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);
157 158
158 // Called to update the current time. 159 // Called to update the current time.
159 virtual void OnTimeUpdate(base::TimeDelta current_time); 160 void OnTimeUpdate(base::TimeDelta current_time);
160 161
161 // Functions called when media player status changes. 162 // Functions called when media player status changes.
162 void OnMediaPlayerPlay(); 163 void OnMediaPlayerPlay();
163 void OnMediaPlayerPause(); 164 void OnMediaPlayerPause();
164 void OnDidEnterFullscreen(); 165 void OnDidEnterFullscreen();
165 void OnDidExitFullscreen(); 166 void OnDidExitFullscreen();
166 167
167 // Called when the player is released. 168 // Called when the player is released.
168 virtual void OnPlayerReleased(); 169 virtual void OnPlayerReleased();
169 170
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 double current_time_; 318 double current_time_;
318 319
319 media::MediaLog* media_log_; 320 media::MediaLog* media_log_;
320 321
321 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 322 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
322 }; 323 };
323 324
324 } // namespace webkit_media 325 } // namespace webkit_media
325 326
326 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 327 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698