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

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

Issue 11442056: Add external surface rendering mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separated GLRenderer change out; refined messaging scheme. Created 7 years, 10 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
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_IMPL_ANDROID_H_ 5 #ifndef WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_
6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_ 6 #define WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include <jni.h> 10 #include <jni.h>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual ~WebMediaPlayerImplAndroid(); 45 virtual ~WebMediaPlayerImplAndroid();
46 46
47 // WebKit::WebMediaPlayer implementation. 47 // WebKit::WebMediaPlayer implementation.
48 virtual void enterFullscreen(); 48 virtual void enterFullscreen();
49 virtual void exitFullscreen(); 49 virtual void exitFullscreen();
50 virtual bool canEnterFullscreen() const; 50 virtual bool canEnterFullscreen() const;
51 51
52 // Functions called when media player status changes. 52 // Functions called when media player status changes.
53 void OnMediaPlayerPlay(); 53 void OnMediaPlayerPlay();
54 void OnMediaPlayerPause(); 54 void OnMediaPlayerPause();
55 void OnDidEnterFullscreen(); 55 void OnDidEnterVideoView(int personality);
56 void OnDidExitFullscreen(); 56 void OnDidExitVideoView(int personality);
57 57
58 // WebMediaPlayerAndroid implementation. 58 // WebMediaPlayerAndroid implementation.
59 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE; 59 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE;
60 virtual void SetVideoSurface(jobject j_surface) OVERRIDE; 60 virtual void SetVideoSurface(jobject j_surface) OVERRIDE;
61 61
62 private: 62 private:
63 // Methods inherited from WebMediaPlayerAndroid. 63 // Methods inherited from WebMediaPlayerAndroid.
64 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; 64 virtual void InitializeMediaPlayer(GURL url) OVERRIDE;
65 virtual void PlayInternal() OVERRIDE; 65 virtual void PlayInternal() OVERRIDE;
66 virtual void PauseInternal() OVERRIDE; 66 virtual void PauseInternal() OVERRIDE;
(...skipping 13 matching lines...) Expand all
80 // process, it will regularly update the |current_time_| by calling 80 // process, it will regularly update the |current_time_| by calling
81 // OnTimeUpdate(). 81 // OnTimeUpdate().
82 float current_time_; 82 float current_time_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplAndroid); 84 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplAndroid);
85 }; 85 };
86 86
87 } // namespace webkit_media 87 } // namespace webkit_media
88 88
89 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_ 89 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « webkit/media/android/webmediaplayer_android.cc ('k') | webkit/media/android/webmediaplayer_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698