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

Side by Side Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review 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 /** 5 /**
6 * @fileoverview 'settings-startup-urls-page' is the settings page 6 * @fileoverview 'settings-startup-urls-page' is the settings page
7 * containing the urls that will be opened when chrome is started. 7 * containing the urls that will be opened when chrome is started.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 }.bind(this)); 61 }.bind(this));
62 }, 62 },
63 63
64 /** 64 /**
65 * @param {!Event} e 65 * @param {!Event} e
66 * @private 66 * @private
67 */ 67 */
68 onAddPageTap_: function(e) { 68 onAddPageTap_: function(e) {
69 e.preventDefault(); 69 e.preventDefault();
70 this.showStartupUrlDialog_ = true; 70 this.showStartupUrlDialog_ = true;
71 this.startupUrlDialogAnchor_ = /** @type {!HTMLElement} */ ( 71 this.startupUrlDialogAnchor_ =
72 this.$$('#addPage a[is=action-link]')); 72 /** @type {!HTMLElement} */ (this.$$('#addPage a[is=action-link]'));
73 }, 73 },
74 74
75 /** @private */ 75 /** @private */
76 destroyUrlDialog_: function() { 76 destroyUrlDialog_: function() {
77 this.showStartupUrlDialog_ = false; 77 this.showStartupUrlDialog_ = false;
78 this.startupUrlDialogModel_ = null; 78 this.startupUrlDialogModel_ = null;
79 if (this.startupUrlDialogAnchor_) { 79 if (this.startupUrlDialogAnchor_) {
80 cr.ui.focusWithoutInk(assert(this.startupUrlDialogAnchor_)); 80 cr.ui.focusWithoutInk(assert(this.startupUrlDialogAnchor_));
81 this.startupUrlDialogAnchor_ = null; 81 this.startupUrlDialogAnchor_ = null;
82 } 82 }
83 }, 83 },
84 84
85 /** @private */ 85 /** @private */
86 onUseCurrentPagesTap_: function() { 86 onUseCurrentPagesTap_: function() {
87 this.browserProxy_.useCurrentPages(); 87 this.browserProxy_.useCurrentPages();
88 }, 88 },
89 }); 89 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698