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

Side by Side Diff: chrome/browser/resources/chromeos/login/gaia_input.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 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 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((function() { 5 Polymer((function() {
6 var INPUT_EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&'*+=?^_`{|}~-]+(@[^\\s@]+)?$"; 6 var INPUT_EMAIL_PATTERN = '^[a-zA-Z0-9.!#$%&\'*+=?^_`{|}~-]+(@[^\\s@]+)?$';
7 7
8 return { 8 return {
9 is: 'gaia-input', 9 is: 'gaia-input',
10 10
11 properties: { 11 properties: {
12 label: String, 12 label: String,
13 value: { 13 value: {notify: true, observer: 'updateDomainVisibility_', type: String},
14 notify: true,
15 observer: 'updateDomainVisibility_',
16 type: String
17 },
18 14
19 type: { 15 type: {observer: 'typeChanged_', type: String},
20 observer: 'typeChanged_',
21 type: String
22 },
23 16
24 domain: { 17 domain: {observer: 'updateDomainVisibility_', type: String},
25 observer: 'updateDomainVisibility_',
26 type: String
27 },
28 18
29 disabled: Boolean, 19 disabled: Boolean,
30 20
31 required: Boolean, 21 required: Boolean,
32 22
33 error: String, 23 error: String,
34 24
35 isInvalid: Boolean 25 isInvalid: Boolean
36 }, 26 },
37 27
(...skipping 29 matching lines...) Expand all
67 this.$.input.pattern = INPUT_EMAIL_PATTERN; 57 this.$.input.pattern = INPUT_EMAIL_PATTERN;
68 this.$.input.type = 'text'; 58 this.$.input.type = 'text';
69 } else { 59 } else {
70 this.$.input.removeAttribute('pattern'); 60 this.$.input.removeAttribute('pattern');
71 this.$.input.type = this.type; 61 this.$.input.type = this.type;
72 } 62 }
73 this.updateDomainVisibility_(); 63 this.updateDomainVisibility_();
74 } 64 }
75 }; 65 };
76 })()); 66 })());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698