OLD | NEW |
1 <!-- | 1 <!-- |
2 -- Copyright 2013 The Chromium Authors. All rights reserved. | 2 -- Copyright 2013 The Chromium Authors. All rights reserved. |
3 -- Use of this source code is governed by a BSD-style license that can be | 3 -- Use of this source code is governed by a BSD-style license that can be |
4 -- found in the LICENSE file. | 4 -- found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <polymer-element name="kb-options-menu-item" attributes="layout label active" | 7 <polymer-element name="kb-options-menu-item" attributes="layout label active" |
8 on-pointerup="up" on-pointerover="over" on-pointerout="out"> | 8 on-pointerup="up" on-pointerover="over" on-pointerout="out"> |
9 <template> | 9 <template> |
10 <style> | 10 <style> |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 } | 125 } |
126 } | 126 } |
127 </style> | 127 </style> |
128 <!-- Insert popups here. --> | 128 <!-- Insert popups here. --> |
129 <kb-options-menu id="options" hidden></kb-options-menu> | 129 <kb-options-menu id="options" hidden></kb-options-menu> |
130 </template> | 130 </template> |
131 <script> | 131 <script> |
132 Polymer('kb-keyboard-overlay', { | 132 Polymer('kb-keyboard-overlay', { |
133 up: function() { | 133 up: function() { |
134 this.hidden = true; | 134 this.hidden = true; |
| 135 }, |
| 136 |
| 137 hiddenChanged: function() { |
| 138 this.fire('stateChange', { |
| 139 state: 'overlayVisibility', |
| 140 value: !!this.hidden |
| 141 }); |
135 } | 142 } |
136 }); | 143 }); |
137 </script> | 144 </script> |
138 </polymer-element> | 145 </polymer-element> |
OLD | NEW |