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 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 Loading... |
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 }; |
OLD | NEW |