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

Unified Diff: content/browser/android/content_video_view.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/content_video_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | content/browser/android/content_video_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698