| Index: content/browser/android/content_video_view.h
|
| diff --git a/content/browser/android/content_video_view.h b/content/browser/android/content_video_view.h
|
| index deb5ffc7f11c91edb3a226ab7cf8395c49fec9de..cff37c0674b385201b17c0ca15afa5aa0827c025 100644
|
| --- a/content/browser/android/content_video_view.h
|
| +++ b/content/browser/android/content_video_view.h
|
| @@ -23,6 +23,13 @@ class MediaPlayerManagerAndroid;
|
| // MediaPlayerManagerAndroid.
|
| class ContentVideoView {
|
| public:
|
| + enum {
|
| + // These are used in java so don't change them unless we can share an enum
|
| + // from java and remove this enum.
|
| + PERSONALITY_FULL_SCREEN = 0,
|
| + PERSONALITY_EMBEDDED = 1,
|
| + };
|
| +
|
| // Construct a ContentVideoView object. The |manager| will handle all the
|
| // playback controls from the Java class.
|
| explicit ContentVideoView(MediaPlayerManagerAndroid* manager);
|
| @@ -40,7 +47,7 @@ class ContentVideoView {
|
|
|
| // Method to create and destroy the Java view.
|
| void DestroyContentVideoView();
|
| - void CreateContentVideoView();
|
| + void CreateContentVideoView(int personality);
|
|
|
| // Called when the Java fullscreen view is destroyed. If
|
| // |release_media_player| is true, |manager_| needs to release the player
|
| @@ -63,6 +70,9 @@ class ContentVideoView {
|
| void OnBufferingUpdate(int percent);
|
| void OnPlaybackComplete();
|
|
|
| + // Simple getter to retrieve personality.
|
| + int getPersonality();
|
| +
|
| private:
|
| // Object that manages the fullscreen media player. It is responsible for
|
| // handling all the playback controls.
|
| @@ -71,6 +81,8 @@ class ContentVideoView {
|
| // Reference to the Java object.
|
| base::android::ScopedJavaGlobalRef<jobject> j_content_video_view_;
|
|
|
| + int personality_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ContentVideoView);
|
| };
|
|
|
|
|