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

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

Issue 13913011: Polished update screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Presubmit checks passed. Created 7 years, 8 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_update.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/oobe_screen_update.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_update.js b/chrome/browser/resources/chromeos/login/oobe_screen_update.js
index 070ee32607f5b2665aa5ce1c0baebf1f20ee249a..26d3366ac9e793f512361841742ad9cfb2507cb2 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_update.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_update.js
@@ -14,9 +14,6 @@ cr.define('oobe', function() {
*/
var UpdateScreen = cr.ui.define('div');
- /** @const */ var ELLIPSIS = ['', '.', '..', '...'];
- /** @const */ var ELLIPSIS_ANIMATION_TIMEOUT_MS = 1000;
-
/**
* Registers with Oobe.
*/
@@ -33,14 +30,6 @@ cr.define('oobe', function() {
decorate: function() {
},
- onBeforeShow: function(data) {
- UpdateScreen.startEllipsisAnimation();
- },
-
- onBeforeHide: function() {
- UpdateScreen.stopEllipsisAnimation();
- },
-
/**
* Header text of the screen.
* @type {string}
@@ -50,14 +39,6 @@ cr.define('oobe', function() {
},
/**
- * Buttons in oobe wizard's button strip.
- * @type {array} Array of Buttons.
- */
- get buttons() {
- return null;
- },
-
- /**
* Cancels the screen.
*/
cancel: function() {
@@ -70,23 +51,6 @@ cr.define('oobe', function() {
},
};
- var ellipsisAnimationActive = false;
-
- /**
- * Updates number of dots in the ellipsis.
- *
- * @private
- * @param {number} count Number of dots that should be shown.
- */
- function updateEllipsisAnimation_(count) {
- $('update-checking-ellipsis').textContent = ELLIPSIS[count];
- if (ellipsisAnimationActive) {
- window.setTimeout(function() {
- updateEllipsisAnimation_((count + 1) % ELLIPSIS.length);
- }, ELLIPSIS_ANIMATION_TIMEOUT_MS);
- }
- };
-
/**
* Makes 'press Escape to cancel update' hint visible.
*/
@@ -94,21 +58,6 @@ cr.define('oobe', function() {
$('update-cancel-hint').hidden = false;
};
- /**
- * Starts animation for tail ellipses in "Checking for update..." label.
- */
- UpdateScreen.startEllipsisAnimation = function() {
- ellipsisAnimationActive = true;
- updateEllipsisAnimation_(0);
- };
-
- /**
- * Stops animation for tail ellipses in "Checking for update..." label.
- */
- UpdateScreen.stopEllipsisAnimation = function() {
- ellipsisAnimationActive = false;
- };
-
return {
UpdateScreen: UpdateScreen
};
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_update.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698