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

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

Issue 100823010: Wire events through to sample_app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years 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 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 }
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/native_viewport.h ('k') | mojo/services/native_viewport/native_viewport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698