OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module mojo { | 5 module mojo { |
6 | 6 |
7 struct Point { | 7 struct Point { |
8 float x; | 8 float x; |
9 float y; | 9 float y; |
10 }; | 10 }; |
(...skipping 27 matching lines...) Expand all Loading... |
38 }; | 38 }; |
39 | 39 |
40 [Peer=NativeViewportClient] | 40 [Peer=NativeViewportClient] |
41 interface NativeViewport { | 41 interface NativeViewport { |
42 Create(Rect bounds); | 42 Create(Rect bounds); |
43 Show(); | 43 Show(); |
44 Hide(); | 44 Hide(); |
45 Close(); | 45 Close(); |
46 SetBounds(Rect bounds); | 46 SetBounds(Rect bounds); |
47 CreateGLES2Context(handle<message_pipe> gles2_client); | 47 CreateGLES2Context(handle<message_pipe> gles2_client); |
48 AckEvent(Event event); | |
49 }; | 48 }; |
50 | 49 |
51 [Peer=NativeViewport] | 50 [Peer=NativeViewport] |
52 interface NativeViewportClient { | 51 interface NativeViewportClient { |
53 OnCreated(); | 52 OnCreated(); |
54 OnBoundsChanged(Rect bounds); | 53 OnBoundsChanged(Rect bounds); |
55 OnDestroyed(); | 54 OnDestroyed(); |
56 OnEvent(Event event); | 55 OnEvent(Event event) => (); |
57 }; | 56 }; |
58 | 57 |
59 } | 58 } |
OLD | NEW |