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

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

Issue 669623006: Add a "device disabled" OOBE screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2014 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 Device disabled screen implementation.
7 */
8
9 login.createScreen('DeviceDisabledScreen', 'device-disabled', function() {
10 return {
11 EXTERNAL_API: [
12 'setMessage'
13 ],
14
15 /**
16 * Event handler that is invoked just before the screen in shown.
17 */
18 onBeforeShow: function() {
19 $('progress-dots').hidden = true;
20 },
21
22 /**
23 * Sets the message to show to the user. If |message| is empty, a default
24 * message will be shown.
25 * @param {string} message The message to show to the user.
26 * @private
27 */
28 setMessage: function(message) {
Nikita (slow) 2014/10/22 10:33:53 This will be used in next CL?
bartfab (slow) 2014/10/22 11:32:16 Yes.
29 $('device-disabled-message').textContent =
30 message || loadTimeData.getString('deviceDisabledDefaultMessage');
31 }
32 };
33 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698