| OLD | NEW | 
| (Empty) |  | 
 |   1 // Copyright 2017 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 ARC Kiosk install/launch app splash screen implementation. | 
 |   7  */ | 
 |   8  | 
 |   9 login.createScreen('ArcKioskSplashScreen', 'arc-kiosk-splash', function() { | 
 |  10   return { | 
 |  11     EXTERNAL_API: [ | 
 |  12       'updateArcKioskMessage', | 
 |  13     ], | 
 |  14  | 
 |  15     /** @override */ | 
 |  16     decorate: function() {}, | 
 |  17  | 
 |  18     /** | 
 |  19      * Event handler that is invoked just before the frame is shown. | 
 |  20      * @param {string} data Screen init payload. | 
 |  21      */ | 
 |  22     onBeforeShow: function(data) { | 
 |  23       this.updateApp(data['appInfo']); | 
 |  24  | 
 |  25       Oobe.getInstance().headerHidden = true; | 
 |  26       Oobe.getInstance().solidBackground = true; | 
 |  27     }, | 
 |  28  | 
 |  29     /** | 
 |  30      * Event handler that is invoked just before the frame is hidden. | 
 |  31      */ | 
 |  32     onBeforeHide: function() {}, | 
 |  33  | 
 |  34     /** | 
 |  35      * Updates the app name and icon. | 
 |  36      * @param {Object} app Details of app being launched. | 
 |  37      */ | 
 |  38     updateApp: function(app) { | 
 |  39       $('arc-splash-header').textContent = app.name; | 
 |  40       $('arc-splash-header').style.backgroundImage = 'url(' + app.iconURL + ')'; | 
 |  41     }, | 
 |  42  | 
 |  43     /** | 
 |  44      * Updates the message for the current ARC kiosk state. | 
 |  45      * @param {string} message Description for current state. | 
 |  46      */ | 
 |  47     updateArcKioskMessage: function(message) { | 
 |  48       $('arc-splash-launch-text').textContent = message; | 
 |  49     } | 
 |  50   }; | 
 |  51 }); | 
| OLD | NEW |