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

Unified Diff: chrome/browser/resources/chromeos/login/demo_user_login.js

Issue 9538002: Create Login UI for Demo User. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: chrome/browser/resources/chromeos/login/demo_user_login.js
diff --git a/chrome/browser/resources/chromeos/login/demo_user_login.js b/chrome/browser/resources/chromeos/login/demo_user_login.js
new file mode 100644
index 0000000000000000000000000000000000000000..974762e9da09b5bfb79ee38103e32ba793e5fa1a
--- /dev/null
+++ b/chrome/browser/resources/chromeos/login/demo_user_login.js
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 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 Demo login UI.
+ */
+
+/**
+ * Handles a user clicking anywhere on the screen. This will log the demo user
+ * in. Yes, this actually _is the intention.
+ */
+onClick = function() {
+ chrome.send('launchDemoUser');
+};
+
+/**
+ * Initializes the click handler.
+ */
+initialize = function() {
+ document.addEventListener('click', onClick);
+};
+
+disableTextSelectAndDrag();
+document.addEventListener('DOMContentLoaded', initialize);

Powered by Google App Engine
This is Rietveld 408576698