| Index: mojo/services/public/interfaces/native_viewport/native_viewport.mojom
|
| diff --git a/mojo/services/public/interfaces/native_viewport/native_viewport.mojom b/mojo/services/public/interfaces/native_viewport/native_viewport.mojom
|
| index 61afb1aa7eafa2273fabfd5a7101a7cd9b67958c..0a685328f72020ecd583c5e3a0cb5d387dd84e27 100644
|
| --- a/mojo/services/public/interfaces/native_viewport/native_viewport.mojom
|
| +++ b/mojo/services/public/interfaces/native_viewport/native_viewport.mojom
|
| @@ -11,17 +11,19 @@ module mojo {
|
|
|
| [Client=NativeViewportClient]
|
| interface NativeViewport {
|
| - Create(Size size);
|
| + // TODO(sky): having a create function is awkward. Should there be a factory
|
| + // to create the NativeViewport that takes the size?
|
| + // TODO(sky): callback should take size too.
|
| + Create(Size size) => (uint64 native_viewport_id);
|
| Show();
|
| Hide();
|
| Close();
|
| - SetBounds(Size size);
|
| + SetSize(Size size);
|
| SubmittedFrame(SurfaceId surface_id);
|
| };
|
|
|
| interface NativeViewportClient {
|
| - OnCreated(uint64 native_viewport_id);
|
| - OnBoundsChanged(Size size);
|
| + OnSizeChanged(Size size);
|
| OnDestroyed();
|
| OnEvent(Event event) => ();
|
| };
|
|
|