Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / mojo / services / public / interfaces / native_viewport / native_viewport.mojom
blobf630031c7b3ab8f2140acdc32410e9e17c481c67
1 // Copyright 2014 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.
5 import "mojo/services/gles2/command_buffer.mojom"
6 import "mojo/services/public/interfaces/geometry/geometry.mojom"
7 import "mojo/services/public/interfaces/input_events/input_events.mojom"
9 module mojo {
11 [Client=NativeViewportClient]
12 interface NativeViewport {
13   Create(Rect? bounds);
14   Show();
15   Hide();
16   Close();
17   SetBounds(Rect? bounds);
20 interface NativeViewportClient {
21   OnCreated(uint64 native_viewport_id);
22   OnBoundsChanged(Rect? bounds);
23   OnDestroyed();
24   OnEvent(Event? event) => ();