| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Functions related to controlling the modal UI state of the app. UI states | 7 * Functions related to controlling the modal UI state of the app. UI states |
| 8 * are expressed as HTML attributes with a dotted hierarchy. For example, the | 8 * are expressed as HTML attributes with a dotted hierarchy. For example, the |
| 9 * string 'host.shared' will match any elements with an associated attribute | 9 * string 'host.shared' will match any elements with an associated attribute |
| 10 * of 'host' or 'host.shared', showing those elements and hiding all others. | 10 * of 'host' or 'host.shared', showing those elements and hiding all others. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 280 } |
| 281 | 281 |
| 282 /** | 282 /** |
| 283 * @param {string} tag | 283 * @param {string} tag |
| 284 */ | 284 */ |
| 285 remoting.showSetupProcessingMessage = function(tag) { | 285 remoting.showSetupProcessingMessage = function(tag) { |
| 286 var messageDiv = document.getElementById('host-setup-processing-message'); | 286 var messageDiv = document.getElementById('host-setup-processing-message'); |
| 287 l10n.localizeElementFromTag(messageDiv, tag); | 287 l10n.localizeElementFromTag(messageDiv, tag); |
| 288 remoting.setMode(remoting.AppMode.HOST_SETUP_PROCESSING); | 288 remoting.setMode(remoting.AppMode.HOST_SETUP_PROCESSING); |
| 289 } | 289 } |
| 290 |
| 291 remoting.testEvents = new base.EventSourceImpl(); |
| 292 |
| 293 /** @enum {string} */ |
| 294 remoting.testEvents.Names = { |
| 295 uiModeChanged: 'uiModeChanged' |
| 296 }; |
| 297 |
| 298 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); |
| OLD | NEW |