OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.media; |
| 6 |
| 7 import org.chromium.media.IAndroidOverlayCallback; |
| 8 import org.chromium.media.IAndroidOverlay; |
| 9 |
| 10 // TODO(liberato): Add oneway here. Will probably have to provide another |
| 11 // method on |callback| to receive the IAndroidOverlay. it can quietly create |
| 12 // the wrapper at that point. any calls to layout, etc., will be ignored if |
| 13 // they're made on an unpopulated android_overlay.cc, so one must wait for |
| 14 // SURFACE_CREATED before using it. note that native createOverlay will return |
| 15 // an unpopulated android_overlay.cc (i.e., no IAndroidOverlay, no wrapper |
| 16 // for it). |
| 17 interface IAndroidOverlayProvider { |
| 18 /** |
| 19 * Create an IAndroidOverlay with the given parameters. |
| 20 * |
| 21 * @param rendererPid pid of the renderer that will own this AndroidOverlay. |
| 22 * @param renderFrameId render frame ID within rendererPid. |
| 23 * @param callback object to receive callbacks about the surface. |
| 24 * @param x Initial position in compositor (not screen) coordinates. |
| 25 * @param y Initial position in compositor (not screen) coordinates. |
| 26 * @param width Initial width in pixels. |
| 27 * @param height Initial height in pixels. |
| 28 */ |
| 29 IAndroidOverlay createOverlay(int rendererPid, int renderFrameId, |
| 30 IAndroidOverlayCallback callback, int x, int y, int width, int heigh
t); |
| 31 } |
OLD | NEW |