Index: media/base/android/java/src/org/chromium/media/IDialogSurfaceHolder.aidl |
diff --git a/media/base/android/java/src/org/chromium/media/IDialogSurfaceHolder.aidl b/media/base/android/java/src/org/chromium/media/IDialogSurfaceHolder.aidl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f7360400f109843d37d7625a3d969d3acf75e2d |
--- /dev/null |
+++ b/media/base/android/java/src/org/chromium/media/IDialogSurfaceHolder.aidl |
@@ -0,0 +1,28 @@ |
+// 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; |
+ |
+interface IDialogSurfaceHolder { |
+ /** |
+ * Close the surface and clean up. This DialogSurfaceHolder can't be |
+ * re-used after this, though additional calls to release() are okay. |
+ */ |
+ void release(); |
+ |
+ /** |
+ * Return the android Surface, if we have one. |
+ */ |
+ Surface getSurface(); |
+ |
+ /** |
+ * Schedule an asynchronous layout of the surface. |
+ */ |
+ void scheduleLayoutSurface(int x, int y, int width, int height); |
+ |
+ /** |
+ * Callback for the activty mapper with the window token or null. |
+ */ |
+ void onWindowToken(IBinder token); |
+} |