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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/screen_arc_kiosk_splash.js
diff --git a/chrome/browser/resources/chromeos/login/screen_arc_kiosk_splash.js b/chrome/browser/resources/chromeos/login/screen_arc_kiosk_splash.js
new file mode 100644
index 0000000000000000000000000000000000000000..baa3a365323fed6254302fc207fa79909f0f6ef8
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/screen_arc_kiosk_splash.js
@@ -0,0 +1,51 @@
+// Copyright 2017 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 ARC Kiosk install/launch app splash screen implementation.
+ */
+
+login.createScreen('ArcKioskSplashScreen', 'arc-kiosk-splash', function() {
+ return {
+ EXTERNAL_API: [
+ 'updateArcKioskMessage',
+ ],
+
+ /** @override */
+ decorate: function() {},
+
+ /**
+ * Event handler that is invoked just before the frame is shown.
+ * @param {string} data Screen init payload.
+ */
+ onBeforeShow: function(data) {
+ this.updateApp(data['appInfo']);
+
+ Oobe.getInstance().headerHidden = true;
+ Oobe.getInstance().solidBackground = true;
+ },
+
+ /**
+ * Event handler that is invoked just before the frame is hidden.
+ */
+ onBeforeHide: function() {},
+
+ /**
+ * Updates the app name and icon.
+ * @param {Object} app Details of app being launched.
+ */
+ updateApp: function(app) {
+ $('arc-splash-header').textContent = app.name;
+ $('arc-splash-header').style.backgroundImage = 'url(' + app.iconURL + ')';
+ },
+
+ /**
+ * Updates the message for the current ARC kiosk state.
+ * @param {string} message Description for current state.
+ */
+ updateArcKioskMessage: function(message) {
+ $('arc-splash-launch-text').textContent = message;
+ }
+ };
+});
« 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