| 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 import "../../public/interfaces/geometry/geometry.mojom" |
| 6 |
| 5 module mojo { | 7 module mojo { |
| 6 | 8 |
| 7 struct Point { | |
| 8 float x; | |
| 9 float y; | |
| 10 }; | |
| 11 | |
| 12 struct Size { | |
| 13 float width; | |
| 14 float height; | |
| 15 }; | |
| 16 | |
| 17 struct Rect { | |
| 18 Point position; | |
| 19 Size size; | |
| 20 }; | |
| 21 | |
| 22 struct KeyData { | 9 struct KeyData { |
| 23 int32 key_code; | 10 int32 key_code; |
| 24 bool is_char; | 11 bool is_char; |
| 25 }; | 12 }; |
| 26 | 13 |
| 27 struct TouchData { | 14 struct TouchData { |
| 28 int32 pointer_id; | 15 int32 pointer_id; |
| 29 }; | 16 }; |
| 30 | 17 |
| 31 struct Event { | 18 struct Event { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 }; | 35 }; |
| 49 | 36 |
| 50 interface NativeViewportClient { | 37 interface NativeViewportClient { |
| 51 OnCreated(); | 38 OnCreated(); |
| 52 OnBoundsChanged(Rect bounds); | 39 OnBoundsChanged(Rect bounds); |
| 53 OnDestroyed(); | 40 OnDestroyed(); |
| 54 OnEvent(Event event) => (); | 41 OnEvent(Event event) => (); |
| 55 }; | 42 }; |
| 56 | 43 |
| 57 } | 44 } |
| OLD | NEW |