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

Unified Diff: bower_components/paper-button/paper-button-base.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « bower_components/paper-button/paper-button.html ('k') | bower_components/paper-checkbox/.bower.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bower_components/paper-button/paper-button-base.html
diff --git a/bower_components/paper-button/paper-button-base.html b/bower_components/paper-button/paper-button-base.html
deleted file mode 100644
index cfbad280c016952f948f53566a9d261ee2725640..0000000000000000000000000000000000000000
--- a/bower_components/paper-button/paper-button-base.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<!--
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
--->
-
-<!--
-@group Paper Elements
-
-`paper-button-base` is the base class for button-like elements with ripple and optional shadow.
-
-@element paper-button-base
-@extends paper-focusable
-@status unstable
--->
-
-<link href="../polymer/polymer.html" rel="import">
-<link href="../paper-focusable/paper-focusable.html" rel="import">
-
-<polymer-element name="paper-button-base" extends="paper-focusable">
-
- <script>
- Polymer({
-
- z: 1,
-
- activeChanged: function() {
- this.super();
-
- if (this.active) {
- // FIXME: remove when paper-ripple can have a default 'down' state.
- if (!this.lastEvent) {
- var rect = this.getBoundingClientRect();
- this.lastEvent = {
- x: rect.left + rect.width / 2,
- y: rect.top + rect.height / 2
- }
- }
- this.$.ripple.downAction(this.lastEvent);
- } else {
- this.$.ripple.upAction();
- }
- this.adjustZ();
- },
-
- disabledChanged: function() {
- this.super();
- if (this.disabled) {
- this.setAttribute('aria-disabled', '');
- } else {
- this.removeAttribute('aria-disabled');
- }
- this.adjustZ();
- },
-
- recenteringTouchChanged: function() {
- if (this.$.ripple) {
- this.$.ripple.classList.toggle('recenteringTouch', this.recenteringTouch);
- }
- },
-
- fillChanged: function() {
- if (this.$.ripple) {
- this.$.ripple.classList.toggle('fill', this.fill);
- }
- },
-
- adjustZ: function() {
- if (this.active) {
- this.z = 2;
- } else if (this.disabled) {
- this.z = 0;
- } else {
- this.z = 1;
- }
- },
-
- downAction: function(e) {
- this.super(e);
- this.lastEvent = e;
- if (!this.$.ripple) {
- var ripple = document.createElement('paper-ripple');
- ripple.setAttribute('id', 'ripple');
- ripple.setAttribute('fit', '');
- if (this.recenteringTouch) {
- ripple.classList.add('recenteringTouch');
- }
- if (!this.fill) {
- ripple.classList.add('circle');
- }
- this.$.ripple = ripple;
- this.shadowRoot.insertBefore(ripple, this.shadowRoot.firstChild);
- // No need to forward the event to the ripple because the ripple
- // is triggered in activeChanged
- }
- }
-
- });
- </script>
-</polymer-element>
« no previous file with comments | « bower_components/paper-button/paper-button.html ('k') | bower_components/paper-checkbox/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698