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 { |
| 8 float x; |
| 9 float y; |
| 10 }; |
| 11 |
| 12 struct TouchData { |
| 13 int32 pointer_id; |
| 14 }; |
| 15 |
| 16 struct Event { |
| 17 int32 action; |
| 18 int64 time_stamp; |
| 19 Point location; |
| 20 TouchData touch_data; |
| 21 }; |
| 22 |
7 [Peer=NativeViewportClient] | 23 [Peer=NativeViewportClient] |
8 interface NativeViewport { | 24 interface NativeViewport { |
9 void Open(); | 25 void Open(); |
10 void Close(); | 26 void Close(); |
11 void CreateGLES2Context(handle<message_pipe> gles2_client); | 27 void CreateGLES2Context(handle<message_pipe> gles2_client); |
12 }; | 28 }; |
13 | 29 |
14 [Peer=NativeViewport] | 30 [Peer=NativeViewport] |
15 interface NativeViewportClient { | 31 interface NativeViewportClient { |
16 void DidOpen(); | 32 void DidOpen(); |
| 33 void HandleEvent(Event event); |
17 }; | 34 }; |
18 | 35 |
19 } | 36 } |
OLD | NEW |