OLD | NEW |
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 /** @constructor */ | 5 /** @constructor */ |
6 function TaskManager() { } | 6 function TaskManager() { } |
7 | 7 |
8 cr.addSingletonGetter(TaskManager); | 8 cr.addSingletonGetter(TaskManager); |
9 | 9 |
10 /* | 10 /* |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 */ | 86 */ |
87 killProcess: function () { | 87 killProcess: function () { |
88 var selectedIndexes = this.selectionModel_.selectedIndexes; | 88 var selectedIndexes = this.selectionModel_.selectedIndexes; |
89 chrome.send('killProcess', selectedIndexes); | 89 chrome.send('killProcess', selectedIndexes); |
90 }, | 90 }, |
91 | 91 |
92 /** | 92 /** |
93 * Sends command to initiate resource inspection. | 93 * Sends command to initiate resource inspection. |
94 * @public | 94 * @public |
95 */ | 95 */ |
96 inspect: function (resourceIndex, event) { | 96 inspect: function (uniqueId) { |
97 event.stopPropagation(); | 97 chrome.send('inspect', [uniqueId]); |
98 chrome.send('inspect', [resourceIndex]); | |
99 }, | 98 }, |
100 | 99 |
101 /** | 100 /** |
102 * Sends command to kill a process. | 101 * Sends command to kill a process. |
103 * @public | 102 * @public |
104 */ | 103 */ |
105 openAboutMemory: function () { | 104 openAboutMemory: function () { |
106 chrome.send('openAboutMemory'); | 105 chrome.send('openAboutMemory'); |
107 }, | 106 }, |
108 | 107 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 taskmanager.onTaskChange(start, length, tasks); | 444 taskmanager.onTaskChange(start, length, tasks); |
446 } | 445 } |
447 | 446 |
448 function taskRemoved(start, length) { | 447 function taskRemoved(start, length) { |
449 // Sometimes this can get called too early. | 448 // Sometimes this can get called too early. |
450 if (!taskmanager) | 449 if (!taskmanager) |
451 return; | 450 return; |
452 taskmanager.onTaskRemove(start, length); | 451 taskmanager.onTaskRemove(start, length); |
453 } | 452 } |
454 | 453 |
OLD | NEW |