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

Side by Side Diff: appengine/chromium_rietveld/new_static/common/cr-button.html

Issue 1001723003: Create a common directory of widgets and css. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.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 unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698