cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / login / gaia_buttons.js
blob7ae8de3b320b767eb44435d00daf99f43e8227c6
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 Polymer({
6 is: 'gaia-button',
8 properties: {
9 disabled: {
10 type: Boolean,
11 value: false,
12 reflectToAttribute: true
15 type: {
16 type: String,
17 value: '',
18 reflectToAttribute: true,
19 observer: 'typeChanged_'
23 focus: function() {
24 this.$.button.focus();
27 focusedChanged_: function() {
28 if (this.type == 'link' || this.type == 'dialog')
29 return;
30 this.$.button.raised = this.$.button.focused;
33 typeChanged_: function() {
34 if (this.type == 'link')
35 this.$.button.setAttribute('noink', '');
36 else
37 this.$.button.removeAttribute('noink');
40 onClick_: function(e) {
41 if (this.disabled)
42 e.stopPropagation();
44 });
46 Polymer({
47 is: 'gaia-icon-button',
49 properties: {
50 disabled: {
51 type: Boolean,
52 value: false,
53 reflectToAttribute: true
56 icon: String,
58 ariaLabel: String
61 focus: function() {
62 this.$.iconButton.focus();
65 onClick_: function(e) {
66 if (this.disabled)
67 e.stopPropagation();
69 });