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

Side by Side Diff: chrome/browser/resources/task_manager/commands.js

Issue 10095003: [WebUI TaskManager] Fix JS check nits in chrome/browser/resources/task_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/task_manager/main.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) 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 TaskManagerCommands = { 5 TaskManagerCommands = {
6 /** 6 /**
7 * Sends commands to kill selected processes. 7 * Sends commands to kill selected processes.
8 */ 8 */
9 killSelectedProcesses: function(uniqueIds) { 9 killSelectedProcesses: function(uniqueIds) {
10 chrome.send('killProcesses', uniqueIds); 10 chrome.send('killProcesses', uniqueIds);
(...skipping 29 matching lines...) Expand all
40 40
41 /** 41 /**
42 * Sends command to activate a page. 42 * Sends command to activate a page.
43 */ 43 */
44 activatePage: function(uniqueId) { 44 activatePage: function(uniqueId) {
45 chrome.send('activatePage', [uniqueId]); 45 chrome.send('activatePage', [uniqueId]);
46 }, 46 },
47 47
48 /** 48 /**
49 * Sends command to enable or disable the given columns to update the data. 49 * Sends command to enable or disable the given columns to update the data.
50 * @public
51 */ 50 */
52 setUpdateColumn: function(columnId, isEnabled) { 51 setUpdateColumn: function(columnId, isEnabled) {
53 chrome.send('setUpdateColumn', [columnId, isEnabled]); 52 chrome.send('setUpdateColumn', [columnId, isEnabled]);
54 53
55 // The 'title' column contains the icon. 54 // The 'title' column contains the icon.
56 if (columnId == 'title') 55 if (columnId == 'title')
57 chrome.send('setUpdateColumn', ['icon', isEnabled]); 56 chrome.send('setUpdateColumn', ['icon', isEnabled]);
58 } 57 }
59 }; 58 };
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/task_manager/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698