| 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 <polymer-element name="cr-button" extends="button" on-keypress="{{ handleKeypres
s }}"> | 5 <polymer-element name="cr-button" extends="button" on-keypress="{{ handleKeypres
s }}"> |
| 6 <template><style> | 6 <template><style> |
| 7 :host { | 7 :host { |
| 8 -webkit-user-select: none; | 8 -webkit-user-select: none; |
| 9 background-color: #f5f5f5; | 9 background-color: #f5f5f5; |
| 10 background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1); | 10 background-image: linear-gradient(to bottom, #f5f5f5, #f1f1f1); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 handleKeypress: function(event) { | 96 handleKeypress: function(event) { |
| 97 // Allow space or enter to activate. | 97 // Allow space or enter to activate. |
| 98 if (event.keyCode == 32) | 98 if (event.keyCode == 32) |
| 99 this.fire("tap"); | 99 this.fire("tap"); |
| 100 else if (event.keyCode == 13) | 100 else if (event.keyCode == 13) |
| 101 this.fire("tap"); | 101 this.fire("tap"); |
| 102 }, | 102 }, |
| 103 }); | 103 }); |
| 104 </script> | 104 </script> |
| 105 </ploymer-element> | 105 </ploymer-element> |
| OLD | NEW |