Chromium Code Reviews| OLD | NEW |
|---|---|
| 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', |
| 11 | 11 |
| 12 behaviors: [RoutableBehavior], | 12 behaviors: [RoutableBehavior], |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 /** | 15 /** |
| 16 * The current active route. | 16 * The current active route. |
| 17 */ | 17 */ |
| 18 currentRoute: { | 18 currentRoute: { |
| 19 type: Object, | 19 type: Object, |
| 20 notify: true, | 20 notify: true, |
| 21 }, | 21 }, |
| 22 }, | 22 }, |
| 23 | 23 |
| 24 /** @private {?settings.AboutPageBrowserProxy} */ | |
|
tommycli
2016/05/17 00:36:48
Was this supposed to be under properties?
dpapad
2016/05/17 00:45:13
We have talked about this stylistic issue in a pre
tommycli
2016/05/17 01:07:28
Acknowledged.
| |
| 25 browserProxy_: null, | |
| 26 | |
| 24 /** | 27 /** |
| 25 * @type {string} Selector to get the sections. | 28 * @type {string} Selector to get the sections. |
| 26 * TODO(michaelpg): replace duplicate docs with @override once b/24294625 | 29 * TODO(michaelpg): replace duplicate docs with @override once b/24294625 |
| 27 * is fixed. | 30 * is fixed. |
| 28 */ | 31 */ |
| 29 sectionSelector: 'settings-section', | 32 sectionSelector: 'settings-section', |
| 30 | 33 |
| 34 /** @override */ | |
| 35 ready: function() { | |
| 36 this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance(); | |
| 37 }, | |
| 38 | |
| 31 /** @override */ | 39 /** @override */ |
| 32 attached: function() { | 40 attached: function() { |
| 33 this.scroller = this.parentElement; | 41 this.scroller = this.parentElement; |
| 34 }, | 42 }, |
| 35 | 43 |
| 44 /** @private */ | |
| 45 onHelpTap_: function() { | |
| 46 this.browserProxy_.openHelpPage(); | |
| 47 }, | |
| 48 | |
| 36 <if expr="chromeos"> | 49 <if expr="chromeos"> |
| 37 /** @private */ | 50 /** @private */ |
| 38 onDetailedBuildInfoTap_: function() { | 51 onDetailedBuildInfoTap_: function() { |
| 39 var animatedPages = /** @type {!SettingsAnimatedPagesElement} */ ( | 52 var animatedPages = /** @type {!SettingsAnimatedPagesElement} */ ( |
| 40 this.$.pages); | 53 this.$.pages); |
| 41 animatedPages.setSubpageChain(['detailed-build-info']); | 54 animatedPages.setSubpageChain(['detailed-build-info']); |
| 42 }, | 55 }, |
| 43 </if> | 56 </if> |
| 57 | |
| 58 <if expr="_google_chrome"> | |
| 59 /** @private */ | |
| 60 onReportIssueTap_: function() { | |
| 61 this.browserProxy_.openFeedbackDialog(); | |
| 62 }, | |
| 63 </if> | |
| 44 }); | 64 }); |
| OLD | NEW |