| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 [Peer=ViewClient] | 7 [Peer=ViewClient] |
| 8 interface View { | 8 interface View { |
| 9 SetId(int32 id); | 9 SetId(int32 id); |
| 10 GetId(); | 10 GetId() => (int32 id); |
| 11 }; | 11 }; |
| 12 | 12 |
| 13 [Peer=View] | 13 [Peer=View] |
| 14 interface ViewClient { | 14 interface ViewClient { |
| 15 OnGotId(int32 id); | |
| 16 }; | 15 }; |
| 17 | 16 |
| 18 [Peer=ViewManagerClient] | 17 [Peer=ViewManagerClient] |
| 19 interface ViewManager { | 18 interface ViewManager { |
| 20 CreateView(); | 19 CreateView() => (View view); |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 [Peer=ViewManager] | 22 [Peer=ViewManager] |
| 24 interface ViewManagerClient { | 23 interface ViewManagerClient { |
| 25 OnViewCreated(View view); | |
| 26 }; | 24 }; |
| 27 | 25 |
| 28 } | 26 } |
| OLD | NEW |