Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: mojo/services/native_viewport/native_viewport.mojom

Issue 298563003: Move geometry types to a more central location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/geometry_conversions.h ('k') | mojo/services/native_viewport/native_viewport_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698