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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_update.js

Issue 2392273002: ChromeOS: Implement Update screen of material design OOBE. (Closed)
Patch Set: Update after review. Added new screen name. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
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;
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698