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

Unified Diff: ui/keyboard/resources/elements/kb-keyset.html

Issue 15176004: Web Component Virtual Keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: ui/keyboard/resources/elements/kb-keyset.html
diff --git a/ui/keyboard/resources/elements/kb-keyset.html b/ui/keyboard/resources/elements/kb-keyset.html
new file mode 100644
index 0000000000000000000000000000000000000000..c953aedb10f7c33833a31059c58f13003fd3831a
--- /dev/null
+++ b/ui/keyboard/resources/elements/kb-keyset.html
@@ -0,0 +1,28 @@
+<!--
+ -- Copyright (c) 2013 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.
+ -->
+
+<element name="kb-keyset" attributes="toKeyset" on-key-up="keyUp">
+ <template>
+ <style>
+ @host {
+ * {
+ -webkit-box-orient: vertical;
+ -webkit-box-flex: 1;
+ display: -webkit-box;
+ }
+ }
+ </style>
+ <content></content>
+ </template>
+ <script>
+ Polymer.register(this, {
+ keyUp: function(event, detail) {
+ if (!detail.toKeyset)
+ detail.toKeyset = this.toKeyset;
+ }
+ });
+ </script>
+</element>

Powered by Google App Engine
This is Rietveld 408576698