Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** | |
| 6 * @fileoverview 'settings-update-warning-dialog' is a component warning the | |
| 7 * user about update over mobile data. By clicking 'Continue', the user | |
| 8 * agrees to download update using mobile data. | |
| 9 */ | |
| 10 Polymer({ | |
| 11 is: 'settings-update-warning-dialog', | |
| 12 | |
| 13 behaviors: [I18nBehavior], | |
| 14 | |
| 15 properties: { | |
| 16 }, | |
| 17 | |
| 18 /** @private {?settings.AboutPageBrowserProxy} */ | |
| 19 browserProxy_: null, | |
|
afakhry
2017/04/03 16:27:27
Why do you need this? I'm not seeing it being used
| |
| 20 | |
| 21 /** @override */ | |
| 22 ready: function() { | |
| 23 this.browserProxy_ = settings.AboutPageBrowserProxyImpl.getInstance(); | |
| 24 }, | |
| 25 | |
| 26 /** @override */ | |
| 27 attached: function() { | |
| 28 this.$.dialog.showModal(); | |
| 29 }, | |
| 30 | |
| 31 /** @private */ | |
| 32 onCancelTap_: function() { | |
| 33 this.$.dialog.close(); | |
| 34 }, | |
| 35 | |
| 36 /** @private */ | |
| 37 onContinueTap_: function() { | |
| 38 this.$.dialog.close(); | |
| 39 }, | |
| 40 | |
| 41 /** | |
| 42 * @param {string} updateSizeMb size of the update in megabytes. | |
| 43 * @private | |
| 44 */ | |
| 45 setUpdateWarningMessage: function(updateSizeMb) { | |
| 46 this.$$("#update-warning-message").innerHTML = | |
| 47 this.i18n("aboutUpdateWarningMessage", updateSizeMb); | |
| 48 }, | |
| 49 }); | |
| OLD | NEW |