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

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: Add getPersonality() Created 8 years 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // WebKit::WebMediaPlayer implementation. 48 // WebKit::WebMediaPlayer implementation.
49 virtual void enterFullscreen(); 49 virtual void enterFullscreen();
50 virtual void exitFullscreen(); 50 virtual void exitFullscreen();
51 virtual bool canEnterFullscreen() const; 51 virtual bool canEnterFullscreen() const;
52 52
53 // Functions called when media player status changes. 53 // Functions called when media player status changes.
54 void OnMediaPlayerPlay(); 54 void OnMediaPlayerPlay();
55 void OnMediaPlayerPause(); 55 void OnMediaPlayerPause();
56 void OnDidEnterFullscreen(); 56 void OnDidEnterFullscreen();
57 void OnDidExitFullscreen(); 57 void OnDidExitFullscreen();
58 void OnDidEnterVideoView();
59 void OnDidExitVideoView();
58 60
59 // WebMediaPlayerAndroid implementation. 61 // WebMediaPlayerAndroid implementation.
60 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE; 62 virtual void OnTimeUpdate(base::TimeDelta current_time) OVERRIDE;
61 virtual void SetVideoSurface(jobject j_surface) OVERRIDE; 63 virtual void SetVideoSurface(jobject j_surface) OVERRIDE;
62 64
63 private: 65 private:
64 // Methods inherited from WebMediaPlayerAndroid. 66 // Methods inherited from WebMediaPlayerAndroid.
65 virtual void InitializeMediaPlayer(GURL url) OVERRIDE; 67 virtual void InitializeMediaPlayer(GURL url) OVERRIDE;
66 virtual void PlayInternal() OVERRIDE; 68 virtual void PlayInternal() OVERRIDE;
67 virtual void PauseInternal() OVERRIDE; 69 virtual void PauseInternal() OVERRIDE;
(...skipping 13 matching lines...) Expand all
81 // process, it will regularly update the |current_time_| by calling 83 // process, it will regularly update the |current_time_| by calling
82 // OnTimeUpdate(). 84 // OnTimeUpdate().
83 float current_time_; 85 float current_time_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplAndroid); 87 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImplAndroid);
86 }; 88 };
87 89
88 } // namespace webkit_media 90 } // namespace webkit_media
89 91
90 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_ 92 #endif // WEBKIT_MEDIA_ANDROID_WEBMEDIAPLAYER_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698