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

Side by Side Diff: chrome/browser/resources/settings/internet_page/tether_connection_dialog.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 * @typedef {{ 6 * @typedef {{
7 * tetherNostDeviceName: string, 7 * tetherNostDeviceName: string,
8 * batteryPercentage: number, 8 * batteryPercentage: number,
9 * connectionStrength: number, 9 * connectionStrength: number,
10 * isTetherHostCurrentlyOnWifi: boolean 10 * isTetherHostCurrentlyOnWifi: boolean
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 getDeviceName_: function(networkProperties) { 96 getDeviceName_: function(networkProperties) {
97 return CrOnc.getNetworkName(networkProperties); 97 return CrOnc.getNetworkName(networkProperties);
98 }, 98 },
99 99
100 /** 100 /**
101 * @param {!CrOnc.NetworkProperties} networkProperties The network properties. 101 * @param {!CrOnc.NetworkProperties} networkProperties The network properties.
102 * @return {string} 102 * @return {string}
103 * @private 103 * @private
104 */ 104 */
105 getBatteryPercentageString_: function(networkProperties) { 105 getBatteryPercentageString_: function(networkProperties) {
106 return this.i18n('tetherConnectionBatteryPercentage', 106 return this.i18n(
107 this.getBatteryPercentageAsString_(networkProperties)); 107 'tetherConnectionBatteryPercentage',
108 this.getBatteryPercentageAsString_(networkProperties));
108 }, 109 },
109 110
110 /** 111 /**
111 * @param {!CrOnc.NetworkProperties} networkProperties The network properties. 112 * @param {!CrOnc.NetworkProperties} networkProperties The network properties.
112 * @return {string} 113 * @return {string}
113 * @private 114 * @private
114 */ 115 */
115 getExplanation_: function(networkProperties) { 116 getExplanation_: function(networkProperties) {
116 return this.i18n('tetherConnectionExplanation', 117 return this.i18n(
117 CrOnc.getNetworkName(networkProperties)); 118 'tetherConnectionExplanation', CrOnc.getNetworkName(networkProperties));
118 }, 119 },
119 120
120 /** 121 /**
121 * @param {!CrOnc.NetworkProperties} networkProperties The network properties. 122 * @param {!CrOnc.NetworkProperties} networkProperties The network properties.
122 * @return {string} 123 * @return {string}
123 * @private 124 * @private
124 */ 125 */
125 getDescriptionTitle_: function(networkProperties) { 126 getDescriptionTitle_: function(networkProperties) {
126 return this.i18n('tetherConnectionDescriptionTitle', 127 return this.i18n(
127 CrOnc.getNetworkName(networkProperties)); 128 'tetherConnectionDescriptionTitle',
129 CrOnc.getNetworkName(networkProperties));
128 }, 130 },
129 131
130 /** 132 /**
131 * @param {!CrOnc.NetworkProperties} networkProperties The network properties. 133 * @param {!CrOnc.NetworkProperties} networkProperties The network properties.
132 * @return {string} 134 * @return {string}
133 * @private 135 * @private
134 */ 136 */
135 getBatteryDescription_: function(networkProperties) { 137 getBatteryDescription_: function(networkProperties) {
136 return this.i18n('tetherConnectionDescriptionBattery', 138 return this.i18n(
137 this.getBatteryPercentageAsString_(networkProperties)); 139 'tetherConnectionDescriptionBattery',
140 this.getBatteryPercentageAsString_(networkProperties));
138 }, 141 },
139 }); 142 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698