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

Side by Side Diff: chrome/browser/resources/chromeos/login/notification_card.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({ 5 Polymer({
6 is: 'notification-card', 6 is: 'notification-card',
7 7
8 properties: { 8 properties: {
9 buttonLabel: { 9 buttonLabel: {type: String, value: ''},
10 type: String,
11 value: ''
12 },
13 10
14 linkLabel: { 11 linkLabel: {type: String, value: ''},
15 type: String,
16 value: ''
17 },
18 12
19 type: { 13 type: {type: String, value: ''}
20 type: String,
21 value: ''
22 }
23 }, 14 },
24 15
25 iconNameByType_: function(type) { 16 iconNameByType_: function(type) {
26 if (type == 'fail') 17 if (type == 'fail')
27 return 'warning'; 18 return 'warning';
28 if (type == 'success') 19 if (type == 'success')
29 return 'done'; 20 return 'done';
30 console.error('Unknown type "' + type + '".'); 21 console.error('Unknown type "' + type + '".');
31 return ''; 22 return '';
32 }, 23 },
33 24
34 buttonClicked_: function() { 25 buttonClicked_: function() {
35 this.fire('buttonclick'); 26 this.fire('buttonclick');
36 }, 27 },
37 28
38 linkClicked_: function(e) { 29 linkClicked_: function(e) {
39 this.fire('linkclick'); 30 this.fire('linkclick');
40 e.preventDefault(); 31 e.preventDefault();
41 }, 32 },
42 33
43 get submitButton() { 34 get submitButton() {
44 return this.$.submitButton; 35 return this.$.submitButton;
45 } 36 }
46 }); 37 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698