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

Side by Side Diff: remoting/webapp/base/js/ui_mode.js

Issue 1370283004: [Chromoting] Remote Assistance in Public Session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PublicSession
Patch Set: Reviewer's feedback Created 5 years, 2 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 unified diff | Download patch
OLDNEW
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
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));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698