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

Unified Diff: media/base/android/java/src/org/chromium/media/IAndroidOverlayProvider.aidl

Issue 2178973004: DialogSurfaceManager implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 3 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
Index: media/base/android/java/src/org/chromium/media/IAndroidOverlayProvider.aidl
diff --git a/media/base/android/java/src/org/chromium/media/IAndroidOverlayProvider.aidl b/media/base/android/java/src/org/chromium/media/IAndroidOverlayProvider.aidl
new file mode 100644
index 0000000000000000000000000000000000000000..dea6fe6006f1962cd327c207e44ee3bb8cefa49e
--- /dev/null
+++ b/media/base/android/java/src/org/chromium/media/IAndroidOverlayProvider.aidl
@@ -0,0 +1,31 @@
+// Copyright 2016 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.media;
+
+import org.chromium.media.IAndroidOverlayCallback;
+import org.chromium.media.IAndroidOverlay;
+
+// TODO(liberato): Add oneway here. Will probably have to provide another
+// method on |callback| to receive the IAndroidOverlay. it can quietly create
+// the wrapper at that point. any calls to layout, etc., will be ignored if
+// they're made on an unpopulated android_overlay.cc, so one must wait for
+// SURFACE_CREATED before using it. note that native createOverlay will return
+// an unpopulated android_overlay.cc (i.e., no IAndroidOverlay, no wrapper
+// for it).
+interface IAndroidOverlayProvider {
+ /**
+ * Create an IAndroidOverlay with the given parameters.
+ *
+ * @param rendererPid pid of the renderer that will own this AndroidOverlay.
+ * @param renderFrameId render frame ID within rendererPid.
+ * @param callback object to receive callbacks about the surface.
+ * @param x Initial position in compositor (not screen) coordinates.
+ * @param y Initial position in compositor (not screen) coordinates.
+ * @param width Initial width in pixels.
+ * @param height Initial height in pixels.
+ */
+ IAndroidOverlay createOverlay(int rendererPid, int renderFrameId,
+ IAndroidOverlayCallback callback, int x, int y, int width, int height);
+}

Powered by Google App Engine
This is Rietveld 408576698