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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java

Issue 13669003: Refactoring ContentVideoViewContextDelegate.java (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 7 years, 6 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
Index: content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java b/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java
new file mode 100644
index 0000000000000000000000000000000000000000..c55722d2101b70eb5f95e0c9d96b0d9cf8ca886a
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentVideoViewClient.java
@@ -0,0 +1,25 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.content.browser;
+
+import android.view.View;
+
+/**
+ * Main callback class used by ContentVideoView.
+ *
+ * This contains the superset of callbacks must be implemented by the emmbedder.
+ *
+ * onShowCustomView and onDestoryContentVideoView must be implemented,
+ * getVideoLoadingProgressView() is optional, and may return null if not required.
+ *
+ * The implementer is responsible for displaying the Android view when
+ * {@link #onShowCustomView(View)} is called.
+ */
+public interface ContentVideoViewClient {
+ public void onShowCustomView(View view);
+ public void onDestroyContentVideoView();
+ public void keepScreenOn(boolean screenOn);
+ public View getVideoLoadingProgressView();
+}

Powered by Google App Engine
This is Rietveld 408576698