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

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

Issue 2649103006: arc: Add splash screen for ARC++ Kiosk startup (Closed)
Patch Set: achuithb@ comments Created 3 years, 10 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
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/screen_arc_kiosk_splash.html ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698