| Index: chrome/browser/resources/chromeos/login/screen_device_disabled.js
|
| diff --git a/chrome/browser/resources/chromeos/login/screen_device_disabled.js b/chrome/browser/resources/chromeos/login/screen_device_disabled.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0fc28d91e77fb490d95f427d3400f4797723ee47
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/chromeos/login/screen_device_disabled.js
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2014 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 Device disabled screen implementation.
|
| + */
|
| +
|
| +login.createScreen('DeviceDisabledScreen', 'device-disabled', function() {
|
| + return {
|
| + EXTERNAL_API: [
|
| + 'setMessage'
|
| + ],
|
| +
|
| + /**
|
| + * Event handler that is invoked just before the screen in shown.
|
| + */
|
| + onBeforeShow: function() {
|
| + $('progress-dots').hidden = true;
|
| + },
|
| +
|
| + /**
|
| + * Sets the message to show to the user. If |message| is empty, a default
|
| + * message will be shown.
|
| + * @param {string} message The message to show to the user.
|
| + * @private
|
| + */
|
| + setMessage: function(message) {
|
| + $('device-disabled-message').textContent =
|
| + message || loadTimeData.getString('deviceDisabledDefaultMessage');
|
| + }
|
| + };
|
| +});
|
|
|