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

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

Issue 8343060: TaskManager: allows referencing task resources from the web ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 /** @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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/task_manager/task_manager.h » ('j') | chrome/browser/task_manager/task_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698