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

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

Issue 8587050: Implement rename and delete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/me2mom/host_table_entry.js ('k') | remoting/webapp/me2mom/xhr.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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. 7 * Functions related to controlling the modal ui state of the app.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 element.hidden = hidden; 61 element.hidden = hidden;
62 } 62 }
63 remoting.debug.log('App mode: ' + mode); 63 remoting.debug.log('App mode: ' + mode);
64 remoting.currentMode = mode; 64 remoting.currentMode = mode;
65 if (mode == remoting.AppMode.IN_SESSION) { 65 if (mode == remoting.AppMode.IN_SESSION) {
66 document.removeEventListener('keydown', remoting.DebugLog.onKeydown, false); 66 document.removeEventListener('keydown', remoting.DebugLog.onKeydown, false);
67 } else { 67 } else {
68 document.addEventListener('keydown', remoting.DebugLog.onKeydown, false); 68 document.addEventListener('keydown', remoting.DebugLog.onKeydown, false);
69 } 69 }
70 if (mode == remoting.AppMode.HOME) { 70 if (mode == remoting.AppMode.HOME) {
71 remoting.refreshHostList(); 71 remoting.hostList.refresh();
72 } 72 }
73 }; 73 };
74 74
75 /** 75 /**
76 * Get the major mode that the app is running in. 76 * Get the major mode that the app is running in.
77 * @return {string} The app's current major mode. 77 * @return {string} The app's current major mode.
78 */ 78 */
79 remoting.getMajorMode = function() { 79 remoting.getMajorMode = function() {
80 return remoting.currentMode.split('.')[0]; 80 return remoting.currentMode.split('.')[0];
81 }; 81 };
OLDNEW
« no previous file with comments | « remoting/webapp/me2mom/host_table_entry.js ('k') | remoting/webapp/me2mom/xhr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698