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

Side by Side Diff: chrome/browser/resources/chromeos/app_launch/app_launch.js

Issue 22914008: Refactor kiosk app launch to be part of login screen UI flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
(Empty)
1 // Copyright (c) 2013 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 App install/launch splash screen.
7 */
8
9 /**
10 * Initializes the click handler.
11 */
12 initialize = function() {
13 var params = parseQueryParams(window.location);
14 var appId = params['app'] || '';
15
16 chrome.send('initialize', [appId]);
17
18 $('shortcut-info').hidden = !loadTimeData.getBoolean('shortcutEnabled');
19 $('page').style.opacity = 1;
20 window.webkitRequestAnimationFrame(function() {});
21 };
22
23 updateApp = function(app) {
24 $('header').textContent = app.name;
25 $('header').style.backgroundImage = 'url(' + app.iconURL + ')';
26 };
27
28 updateMessage = function(message) {
29 $('launch-text').textContent = message;
30 };
31
32 disableTextSelectAndDrag();
33 document.addEventListener('DOMContentLoaded', initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698