OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 Demo login UI. |
| 7 */ |
| 8 |
| 9 /** |
| 10 * Handles a user clicking anywhere on the screen. This will log the demo user |
| 11 * in. Yes, this actually _is the intention. |
| 12 */ |
| 13 onClick = function() { |
| 14 chrome.send('launchDemoUser'); |
| 15 }; |
| 16 |
| 17 /** |
| 18 * Initializes the click handler. |
| 19 */ |
| 20 initialize = function() { |
| 21 document.addEventListener('click', onClick); |
| 22 }; |
| 23 |
| 24 disableTextSelectAndDrag(); |
| 25 document.addEventListener('DOMContentLoaded', initialize); |
OLD | NEW |