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

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: 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 side-by-side diff with in-line comments
Download patch
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..a41650f43601a0d0e5cf6b2e6353ce6c9006c6ce 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
@@ -71,6 +78,8 @@ class ContentVideoView {
// Reference to the Java object.
base::android::ScopedJavaGlobalRef<jobject> j_content_video_view_;
+ int personality_;
+
DISALLOW_COPY_AND_ASSIGN(ContentVideoView);
};

Powered by Google App Engine
This is Rietveld 408576698