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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 break; | 269 break; |
270 } | 270 } |
271 } | 271 } |
272 if (removeFromKeyboardNavigation) { | 272 if (removeFromKeyboardNavigation) { |
273 element.setAttribute(kSavedAttributeName, element.tabIndex); | 273 element.setAttribute(kSavedAttributeName, element.tabIndex); |
274 element.tabIndex = -1; | 274 element.tabIndex = -1; |
275 } | 275 } |
276 } | 276 } |
277 } | 277 } |
278 } | 278 } |
| 279 |
| 280 /** |
| 281 * @param {string} tag |
| 282 */ |
| 283 remoting.showSetupProcessingMessage = function(tag) { |
| 284 var messageDiv = document.getElementById('host-setup-processing-message'); |
| 285 l10n.localizeElementFromTag(messageDiv, tag); |
| 286 remoting.setMode(remoting.AppMode.HOST_SETUP_PROCESSING); |
| 287 } |
OLD | NEW |