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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_update.js

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Oobe update screen implementation. 6 * @fileoverview Oobe update screen implementation.
7 */ 7 */
8 8
9 cr.define('oobe', function() { 9 cr.define('oobe', function() {
10 /** 10 /**
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 cancel: function() { 63 cancel: function() {
64 // It's safe to act on the accelerator even if it's disabled on official 64 // It's safe to act on the accelerator even if it's disabled on official
65 // builds, since Chrome will just ignore the message in that case. 65 // builds, since Chrome will just ignore the message in that case.
66 var updateCancelHint = $('update-cancel-hint').firstElementChild; 66 var updateCancelHint = $('update-cancel-hint').firstElementChild;
67 updateCancelHint.textContent = 67 updateCancelHint.textContent =
68 loadTimeData.getString('cancelledUpdateMessage'); 68 loadTimeData.getString('cancelledUpdateMessage');
69 chrome.send('cancelUpdate'); 69 chrome.send('cancelUpdate');
70 }, 70 },
71 }; 71 };
72 72
73 var ellipsis_animation_active = false; 73 var ellipsisAnimationActive = false;
74 74
75 /** 75 /**
76 * Updates number of dots in the ellipsis. 76 * Updates number of dots in the ellipsis.
77 * 77 *
78 * @private 78 * @private
79 * @param {number} count Number of dots that should be shown. 79 * @param {number} count Number of dots that should be shown.
80 */ 80 */
81 function updateEllipsisAnimation_(count) { 81 function updateEllipsisAnimation_(count) {
82 $('update-checking-ellipsis').textContent = ELLIPSIS[count]; 82 $('update-checking-ellipsis').textContent = ELLIPSIS[count];
83 if (ellipsis_animation_active) { 83 if (ellipsisAnimationActive) {
84 window.setTimeout(function() { 84 window.setTimeout(function() {
85 updateEllipsisAnimation_((count + 1) % ELLIPSIS.length); 85 updateEllipsisAnimation_((count + 1) % ELLIPSIS.length);
86 }, ELLIPSIS_ANIMATION_TIMEOUT_MS); 86 }, ELLIPSIS_ANIMATION_TIMEOUT_MS);
87 } 87 }
88 }; 88 };
89 89
90 /** 90 /**
91 * Makes 'press Escape to cancel update' hint visible. 91 * Makes 'press Escape to cancel update' hint visible.
92 */ 92 */
93 UpdateScreen.enableUpdateCancel = function() { 93 UpdateScreen.enableUpdateCancel = function() {
94 $('update-cancel-hint').hidden = false; 94 $('update-cancel-hint').hidden = false;
95 }; 95 };
96 96
97 /** 97 /**
98 * Starts animation for tail ellipses in "Checking for update..." label. 98 * Starts animation for tail ellipses in "Checking for update..." label.
99 */ 99 */
100 UpdateScreen.startEllipsisAnimation = function() { 100 UpdateScreen.startEllipsisAnimation = function() {
101 ellipsis_animation_active = true; 101 ellipsisAnimationActive = true;
102 updateEllipsisAnimation_(0); 102 updateEllipsisAnimation_(0);
103 }; 103 };
104 104
105 /** 105 /**
106 * Stops animation for tail ellipses in "Checking for update..." label. 106 * Stops animation for tail ellipses in "Checking for update..." label.
107 */ 107 */
108 UpdateScreen.stopEllipsisAnimation = function() { 108 UpdateScreen.stopEllipsisAnimation = function() {
109 ellipsis_animation_active = false; 109 ellipsisAnimationActive = false;
110 }; 110 };
111 111
112 return { 112 return {
113 UpdateScreen: UpdateScreen 113 UpdateScreen: UpdateScreen
114 }; 114 };
115 }); 115 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698