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

Side by Side Diff: chrome/browser/resources/settings/about_page/about_page.js

Issue 2054013002: [MD settings] advanced toggle; add scrollWhenReady (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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-about-page' contains version and OS related 6 * @fileoverview 'settings-about-page' contains version and OS related
7 * information. 7 * information.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-about-page', 10 is: 'settings-about-page',
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 this.startListening_(); 79 this.startListening_();
80 }.bind(this)); 80 }.bind(this));
81 81
82 this.browserProxy_.getRegulatoryInfo().then(function(info) { 82 this.browserProxy_.getRegulatoryInfo().then(function(info) {
83 this.regulatoryInfo_ = info; 83 this.regulatoryInfo_ = info;
84 }.bind(this)); 84 }.bind(this));
85 </if> 85 </if>
86 <if expr="not chromeos"> 86 <if expr="not chromeos">
87 this.startListening_(); 87 this.startListening_();
88 </if> 88 </if>
89
90 this.scroller = this.parentElement;
91 }, 89 },
92 90
93 /** @private */ 91 /** @private */
94 startListening_: function() { 92 startListening_: function() {
95 this.addWebUIListener( 93 this.addWebUIListener(
96 'update-status-changed', 94 'update-status-changed',
97 this.onUpdateStatusChanged_.bind(this)); 95 this.onUpdateStatusChanged_.bind(this));
98 this.browserProxy_.refreshUpdateStatus(); 96 this.browserProxy_.refreshUpdateStatus();
99 }, 97 },
100 98
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 }, 287 },
290 </if> 288 </if>
291 289
292 <if expr="_google_chrome"> 290 <if expr="_google_chrome">
293 /** @private */ 291 /** @private */
294 onReportIssueTap_: function() { 292 onReportIssueTap_: function() {
295 this.browserProxy_.openFeedbackDialog(); 293 this.browserProxy_.openFeedbackDialog();
296 }, 294 },
297 </if> 295 </if>
298 }); 296 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698