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

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

Issue 2617823002: GRIT: put <if> and <include> behind comments in .js files to make syntactically valid JS (Closed)
Patch Set: add dep Created 3 years, 11 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 6 * @fileoverview
7 * 'settings-reset-page' is the settings page containing reset 7 * 'settings-reset-page' is the settings page containing reset
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <iron-animated-pages> 12 * <iron-animated-pages>
13 * <settings-reset-page prefs="{{prefs}}"> 13 * <settings-reset-page prefs="{{prefs}}">
14 * </settings-reset-page> 14 * </settings-reset-page>
15 * ... other pages ... 15 * ... other pages ...
16 * </iron-animated-pages> 16 * </iron-animated-pages>
17 */ 17 */
18 Polymer({ 18 Polymer({
19 is: 'settings-reset-page', 19 is: 'settings-reset-page',
20 20
21 behaviors: [settings.RouteObserverBehavior], 21 behaviors: [settings.RouteObserverBehavior],
22 22
23 properties: { 23 properties: {
24 <if expr="chromeos"> 24 // <if expr="chromeos">
25 /** @private */ 25 /** @private */
26 showPowerwashDialog_: Boolean, 26 showPowerwashDialog_: Boolean,
27 </if> 27 // </if>
28 28
29 /** @private */ 29 /** @private */
30 allowPowerwash_: { 30 allowPowerwash_: {
31 type: Boolean, 31 type: Boolean,
32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false 32 value: cr.isChromeOS ? loadTimeData.getBoolean('allowPowerwash') : false
33 }, 33 },
34 34
35 /** @private */ 35 /** @private */
36 showResetProfileDialog_: { 36 showResetProfileDialog_: {
37 type: Boolean, 37 type: Boolean,
(...skipping 16 matching lines...) Expand all
54 onShowResetProfileDialog_: function() { 54 onShowResetProfileDialog_: function() {
55 settings.navigateTo(settings.Route.RESET_DIALOG, 55 settings.navigateTo(settings.Route.RESET_DIALOG,
56 new URLSearchParams('origin=userclick')); 56 new URLSearchParams('origin=userclick'));
57 }, 57 },
58 58
59 /** @private */ 59 /** @private */
60 onResetProfileDialogClose_: function() { 60 onResetProfileDialogClose_: function() {
61 settings.navigateToPreviousRoute(); 61 settings.navigateToPreviousRoute();
62 }, 62 },
63 63
64 <if expr="chromeos"> 64 // <if expr="chromeos">
65 /** 65 /**
66 * @param {!Event} e 66 * @param {!Event} e
67 * @private 67 * @private
68 */ 68 */
69 onShowPowerwashDialog_: function(e) { 69 onShowPowerwashDialog_: function(e) {
70 e.preventDefault(); 70 e.preventDefault();
71 this.showPowerwashDialog_ = true; 71 this.showPowerwashDialog_ = true;
72 }, 72 },
73 73
74 /** @private */ 74 /** @private */
75 onPowerwashDialogClose_: function() { 75 onPowerwashDialogClose_: function() {
76 this.showPowerwashDialog_ = false; 76 this.showPowerwashDialog_ = false;
77 }, 77 },
78 </if> 78 // </if>
79 }); 79 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/reset_page/reset_browser_proxy.js ('k') | chrome/browser/resources/settings/route.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698