| 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 12 matching lines...) Expand all Loading... |
| 23 [Peer=NativeViewportClient] | 23 [Peer=NativeViewportClient] |
| 24 interface NativeViewport { | 24 interface NativeViewport { |
| 25 void Open(); | 25 void Open(); |
| 26 void Close(); | 26 void Close(); |
| 27 void CreateGLES2Context(handle<message_pipe> gles2_client); | 27 void CreateGLES2Context(handle<message_pipe> gles2_client); |
| 28 void AckEvent(Event event); | 28 void AckEvent(Event event); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 [Peer=NativeViewport] | 31 [Peer=NativeViewport] |
| 32 interface NativeViewportClient { | 32 interface NativeViewportClient { |
| 33 void OnCreated(); | 33 void OnCreated(uint32 width, uint32 height); |
| 34 void OnDestroyed(); | 34 void OnDestroyed(); |
| 35 void OnEvent(Event event); | 35 void OnEvent(Event event); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } | 38 } |
| OLD | NEW |