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

Unified Diff: appengine/chromium_rietveld/new_static/components/cr-action.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 side-by-side diff with in-line comments
Download patch
Index: appengine/chromium_rietveld/new_static/components/cr-action.html
diff --git a/appengine/chromium_rietveld/new_static/components/cr-action.html b/appengine/chromium_rietveld/new_static/components/cr-action.html
deleted file mode 100644
index a03df3cb47e7599d845aa1ea2daa4c165bac7743..0000000000000000000000000000000000000000
--- a/appengine/chromium_rietveld/new_static/components/cr-action.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<!-- Copyright (c) 2014 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. -->
-
-<!--
- This is similar to a button, but appears like a link instead. It's generally
- for non-destructive actions and should never navigate the page.
-
- ex. <a is="cr-action" on-tap="{{ doSomething }}"></a>
-
- Note: This element is very common on typical pages so it's been micro
- optimized to not contain any whitespace and not use data binding in the
- template.
--->
-<polymer-element name="cr-action" extends="a" on-keyup="{{ handleKeyup }}" on-click="{{ handleClick }}">
- <template><style>
- :host {
- color: #1155CC;
- cursor: pointer;
- display: inline-block;
- text-decoration: none;
- -webkit-user-select: none;
- }
-
- :host(:hover) {
- text-decoration: underline;
- }
- </style><content></content></template>
- <script>
- Polymer("cr-action", {
- created: function() {
- this.href = "/#";
- },
- handleKeyup: function(event) {
- // Enter and spacebar keys
- if (event.keyCode == 13 || event.keyCode == 32) {
- this.fire("tap");
- event.preventDefault();
- }
- },
- handleClick: function(event) {
- event.preventDefault();
- },
- });
- </script>
-</ploymer-element>

Powered by Google App Engine
This is Rietveld 408576698