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 Polymer element for displaying material design Update screen. | |
| 7 */ | |
| 8 | |
| 9 Polymer({ | |
| 10 is: 'oobe-update-md', | |
| 11 | |
| 12 properties: { | |
| 13 /** | |
| 14 * Shows "Checking for update ..." section and hides "Updating..." section. | |
| 15 */ | |
| 16 checkingForUpdate: { | |
| 17 type: Boolean, | |
| 18 value: true, | |
| 19 }, | |
| 20 | |
| 21 /** | |
| 22 * Progress bar percent. | |
| 23 */ | |
| 24 progressValue: { | |
| 25 type: Number, | |
| 26 value: 0, | |
| 27 }, | |
| 28 | |
| 29 /** | |
| 30 * Message "3 minutes left". | |
| 31 */ | |
| 32 estimatedTimeLeft: { | |
| 33 type: String, | |
| 34 }, | |
| 35 | |
| 36 /** | |
| 37 * Shows estimatedTimeLeft. | |
| 38 */ | |
| 39 estimatedTimeLeftShown: { | |
| 40 type: Boolean, | |
| 41 }, | |
| 42 | |
| 43 /** | |
| 44 * Message "33 percent done". | |
| 45 */ | |
| 46 progressMessage: { | |
| 47 type: String, | |
| 48 }, | |
| 49 | |
| 50 /** | |
| 51 * Shows progressMessage. | |
| 52 */ | |
| 53 progressMessageShown: { | |
| 54 type: Boolean, | |
| 55 }, | |
| 56 | |
| 57 /** | |
| 58 * Message above the progress bar. | |
| 59 */ | |
| 60 updateUpperLabel: { | |
| 61 type: String, | |
| 62 }, | |
| 63 | |
| 64 /** | |
| 65 * If update cancellation is allowed. | |
| 66 */ | |
| 67 cancelAllowed: { | |
| 68 type: Boolean, | |
| 69 value: false, | |
| 70 }, | |
| 71 }, | |
| 72 | |
| 73 /** | |
| 74 * This updates "Cancel Update" message. | |
| 75 */ | |
| 76 setCancelHint: function(message) { | |
| 77 this.$.cancelHint1.textContent = message; | |
|
michaelpg
2016/10/05 21:51:42
optional: Would be more "Polymeric" to have a "can
Alexander Alekseev
2016/10/05 22:06:24
I decided not to go this way because it would requ
| |
| 78 this.$.cancelHint2.textContent = message; | |
| 79 }, | |
| 80 }); | |
| OLD | NEW |