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); |