| Index: chrome/browser/resources/chromeos/login/oobe_update.js
|
| diff --git a/chrome/browser/resources/chromeos/login/oobe_update.js b/chrome/browser/resources/chromeos/login/oobe_update.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..20bb852a6c89a36724108f0ebb68ef8ae4078c1d
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/chromeos/login/oobe_update.js
|
| @@ -0,0 +1,80 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/**
|
| + * @fileoverview Polymer element for displaying material design Update screen.
|
| + */
|
| +
|
| +Polymer({
|
| + is: 'oobe-update-md',
|
| +
|
| + properties: {
|
| + /**
|
| + * Shows "Checking for update ..." section and hides "Updating..." section.
|
| + */
|
| + checkingForUpdate: {
|
| + type: Boolean,
|
| + value: true,
|
| + },
|
| +
|
| + /**
|
| + * Progress bar percent.
|
| + */
|
| + progressValue: {
|
| + type: Number,
|
| + value: 0,
|
| + },
|
| +
|
| + /**
|
| + * Message "3 minutes left".
|
| + */
|
| + estimatedTimeLeft: {
|
| + type: String,
|
| + },
|
| +
|
| + /**
|
| + * Shows estimatedTimeLeft.
|
| + */
|
| + estimatedTimeLeftShown: {
|
| + type: Boolean,
|
| + },
|
| +
|
| + /**
|
| + * Message "33 percent done".
|
| + */
|
| + progressMessage: {
|
| + type: String,
|
| + },
|
| +
|
| + /**
|
| + * Shows progressMessage.
|
| + */
|
| + progressMessageShown: {
|
| + type: Boolean,
|
| + },
|
| +
|
| + /**
|
| + * Message above the progress bar.
|
| + */
|
| + updateUpperLabel: {
|
| + type: String,
|
| + },
|
| +
|
| + /**
|
| + * If update cancellation is allowed.
|
| + */
|
| + cancelAllowed: {
|
| + type: Boolean,
|
| + value: false,
|
| + },
|
| + },
|
| +
|
| + /**
|
| + * This updates "Cancel Update" message.
|
| + */
|
| + setCancelHint: function(message) {
|
| + this.$.checkingForUpdateCancelHint.textContent = message;
|
| + this.$.updatingCancelHint.textContent = message;
|
| + },
|
| +});
|
|
|