Index: sky/examples/editor/keyboard.dart |
diff --git a/sky/examples/editor/keyboard.dart b/sky/examples/editor/keyboard.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c958e489ac1036bca7b94f6c8323f09ddfaee946 |
--- /dev/null |
+++ b/sky/examples/editor/keyboard.dart |
@@ -0,0 +1,20 @@ |
+// Copyright 2015 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. |
+ |
+import '../../framework/shell.dart' as shell; |
+import 'package:sky/services/keyboard/keyboard.mojom.dart'; |
+ |
+class _KeyboardConnection { |
+ KeyboardServiceProxy proxy; |
+ |
+ _KeyboardConnection() { |
+ proxy = new KeyboardServiceProxy.unbound(); |
+ shell.requestService(proxy); |
+ } |
+ |
+ KeyboardService get keyboard => proxy.ptr; |
+} |
+ |
+final _KeyboardConnection _connection = new _KeyboardConnection(); |
+final KeyboardService keyboard = _connection.keyboard; |