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

Unified Diff: sky/examples/editor/keyboard.dart

Issue 999553002: Make a material design Input component (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/editor/input.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « sky/examples/editor/input.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698