Index: media/base/android/java/src/org/chromium/media/IDialogSurfaceCallback.aidl |
diff --git a/media/base/android/java/src/org/chromium/media/IDialogSurfaceCallback.aidl b/media/base/android/java/src/org/chromium/media/IDialogSurfaceCallback.aidl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e99bbbf3d65b29eeae5b81220820f2132ac3a810 |
--- /dev/null |
+++ b/media/base/android/java/src/org/chromium/media/IDialogSurfaceCallback.aidl |
@@ -0,0 +1,17 @@ |
+// 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; |
+ |
+// Callback interface for the DialogSurface. |
+interface IDialogSurfaceCallback { |
+ // Notify the callback that an Android Surface has been created. |
+ void onCreated(in Surface surface); |
+ |
+ // Notify the client that the DialogSurface has been destroyed. This must |
+ // synchronously quit using the Android surface before returning. The |
+ // client must create a new DialogSurface, if desired. Any pending or |
+ // future calls into IDialogSurface will be ignored. |
+ void onDestroyed(); |
+} |