| OLD | NEW |
| 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-date-time-page' is the settings page containing date and time | 7 * 'settings-date-time-page' is the settings page containing date and time |
| 8 * settings. | 8 * settings. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 * @private | 144 * @private |
| 145 */ | 145 */ |
| 146 onCanSetDateTimeChanged_: function(canSetDateTime) { | 146 onCanSetDateTimeChanged_: function(canSetDateTime) { |
| 147 this.canSetDateTime_ = canSetDateTime; | 147 this.canSetDateTime_ = canSetDateTime; |
| 148 }, | 148 }, |
| 149 | 149 |
| 150 /** | 150 /** |
| 151 * @param {!Event} e | 151 * @param {!Event} e |
| 152 * @private | 152 * @private |
| 153 */ | 153 */ |
| 154 onTimeZoneAutoDetectCheckboxChange_: function(e) { | 154 onTimeZoneAutoDetectChange_: function(e) { |
| 155 this.setPrefValue( | 155 this.setPrefValue( |
| 156 'settings.resolve_timezone_by_geolocation', e.target.checked); | 156 'settings.resolve_timezone_by_geolocation', e.target.checked); |
| 157 }, | 157 }, |
| 158 | 158 |
| 159 /** @private */ | 159 /** @private */ |
| 160 onSetDateTimeTap_: function() { | 160 onSetDateTimeTap_: function() { |
| 161 chrome.send('showSetDateTimeUI'); | 161 chrome.send('showSetDateTimeUI'); |
| 162 }, | 162 }, |
| 163 | 163 |
| 164 /** | 164 /** |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 */ | 215 */ |
| 216 setTimeZoneList_: function(timeZones) { | 216 setTimeZoneList_: function(timeZones) { |
| 217 this.timeZoneList_ = timeZones.map(function(timeZonePair) { | 217 this.timeZoneList_ = timeZones.map(function(timeZonePair) { |
| 218 return { | 218 return { |
| 219 name: timeZonePair[1], | 219 name: timeZonePair[1], |
| 220 value: timeZonePair[0], | 220 value: timeZonePair[0], |
| 221 }; | 221 }; |
| 222 }); | 222 }); |
| 223 }, | 223 }, |
| 224 }); | 224 }); |
| OLD | NEW |