OLD | NEW |
1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
4 | 4 |
5 <link rel="import" href="cr-keyboard.html"> | 5 <link rel="import" href="cr-keyboard.html"> |
6 | 6 |
7 <polymer-element name="cr-user-autocomplete" attributes="value"> | 7 <polymer-element name="cr-user-autocomplete" attributes="value"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
11 -webkit-user-select: none; | 11 -webkit-user-select: none; |
12 } | 12 } |
13 | 13 |
14 #completions { | 14 #completions { |
15 position: absolute; | 15 position: absolute; |
16 border: 1px solid #dcdcdc; | 16 border: 1px solid #dcdcdc; |
17 border-top: none; | 17 border-top: none; |
18 background-color: white; | 18 background-color: white; |
19 left: 0; | 19 left: 0; |
20 right: 0; | 20 right: 0; |
21 margin: 0 16px; | 21 margin: 0 16px; |
22 font-family: Monaco, monospace; | 22 font-family: Menlo, Monaco, monospace; |
23 font-size: 0.9em; | 23 font-size: 0.9em; |
24 z-index: 1; | 24 z-index: 1; |
25 cursor: default; | 25 cursor: default; |
26 } | 26 } |
27 | 27 |
28 .completion { | 28 .completion { |
29 padding: 0.5em 16px; | 29 padding: 0.5em 16px; |
30 } | 30 } |
31 | 31 |
32 .selected { | 32 .selected { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 this.didComplete = true; | 163 this.didComplete = true; |
164 }, | 164 }, |
165 resetAutocomplete: function() { | 165 resetAutocomplete: function() { |
166 this.completions = []; | 166 this.completions = []; |
167 this.termRange = {}; | 167 this.termRange = {}; |
168 this.active = false; | 168 this.active = false; |
169 }, | 169 }, |
170 }); | 170 }); |
171 </script> | 171 </script> |
172 </polymer-element> | 172 </polymer-element> |
OLD | NEW |