summaryrefslogtreecommitdiffstats
path: root/mojo/examples/view_manager/view_manager.mojom
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/examples/view_manager/view_manager.mojom')
-rw-r--r--mojo/examples/view_manager/view_manager.mojom28
1 files changed, 28 insertions, 0 deletions
diff --git a/mojo/examples/view_manager/view_manager.mojom b/mojo/examples/view_manager/view_manager.mojom
new file mode 100644
index 0000000..966474f
--- /dev/null
+++ b/mojo/examples/view_manager/view_manager.mojom
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo {
+
+[Peer=ViewClient]
+interface View {
+ void SetId(int32 id);
+ void GetId();
+};
+
+[Peer=View]
+interface ViewClient {
+ void OnGotId(int32 id);
+};
+
+[Peer=ViewManagerClient]
+interface ViewManager {
+ void CreateView();
+};
+
+[Peer=ViewManager]
+interface ViewManagerClient {
+ void OnViewCreated(handle<message_pipe> view);
+};
+
+}