Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 /** | 46 /** |
| 47 * Closes taskmanager dialog. | 47 * Closes taskmanager dialog. |
| 48 * After this function is called, onClose() will be called. | 48 * After this function is called, onClose() will be called. |
| 49 * @public | 49 * @public |
| 50 */ | 50 */ |
| 51 close: function () { | 51 close: function () { |
| 52 window.close(); | 52 window.close(); |
| 53 }, | 53 }, |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Sends commands to kill a process. | 56 * Sends commands to initiate resource inspection. |
|
yurys
2011/10/26 14:33:44
This is comment for the inspect method.
| |
| 57 * @public | 57 * @public |
| 58 */ | 58 */ |
| 59 killProcess: function () { | 59 killProcess: function () { |
| 60 var selectedIndexes = this.selectionModel_.selectedIndexes; | 60 var selectedIndexes = this.selectionModel_.selectedIndexes; |
| 61 chrome.send('killProcess', selectedIndexes); | 61 chrome.send('killProcess', selectedIndexes); |
| 62 }, | 62 }, |
| 63 | 63 |
| 64 /** | 64 /** |
| 65 * Sends commands to kill a process. | |
|
yurys
2011/10/26 14:33:44
Move to killProcess comments?
| |
| 66 * @public | |
| 67 */ | |
| 68 inspect: function (resourceIndex) { | |
| 69 chrome.send('inspect', [resourceIndex]); | |
| 70 }, | |
| 71 | |
| 72 /** | |
| 65 * Sends command to kill a process. | 73 * Sends command to kill a process. |
| 66 * @public | 74 * @public |
| 67 */ | 75 */ |
| 68 openAboutMemory: function () { | 76 openAboutMemory: function () { |
| 69 chrome.send('openAboutMemory'); | 77 chrome.send('openAboutMemory'); |
| 70 }, | 78 }, |
| 71 | 79 |
| 72 /** | 80 /** |
| 73 * Sends command to disable taskmanager model. | 81 * Sends command to disable taskmanager model. |
| 74 * @public | 82 * @public |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 taskmanager.onTaskChange(start, length, tasks); | 413 taskmanager.onTaskChange(start, length, tasks); |
| 406 } | 414 } |
| 407 | 415 |
| 408 function taskRemoved(start, length) { | 416 function taskRemoved(start, length) { |
| 409 // Sometimes this can get called too early. | 417 // Sometimes this can get called too early. |
| 410 if (!taskmanager) | 418 if (!taskmanager) |
| 411 return; | 419 return; |
| 412 taskmanager.onTaskRemove(start, length); | 420 taskmanager.onTaskRemove(start, length); |
| 413 } | 421 } |
| 414 | 422 |
| OLD | NEW |