diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 21:25:33 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-30 21:25:33 +0000 |
commit | 65055ebfc2f1af07452599ac1117a1bc9b61dd8f (patch) | |
tree | 0e858a0b8676641b3af7808792a19b49dd9eb3df /chrome/browser/gtk/task_manager_gtk.h | |
parent | 9ecc5270b720634aaf019a3275cff7e564dd9fb1 (diff) | |
download | chromium_src-65055ebfc2f1af07452599ac1117a1bc9b61dd8f.zip chromium_src-65055ebfc2f1af07452599ac1117a1bc9b61dd8f.tar.gz chromium_src-65055ebfc2f1af07452599ac1117a1bc9b61dd8f.tar.bz2 |
Make the cache columns in the Task Manager sortable and only displayed once per process on GTK and Mac, just like was already done on Windows.
BUG=16221
TEST=Open Task Manager on GTK or Mac, add a WebCore Cache column, see that it only prints one line of output per process, and verify it's sortable.
Review URL: http://codereview.chromium.org/251046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/task_manager_gtk.h')
-rw-r--r-- | chrome/browser/gtk/task_manager_gtk.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/gtk/task_manager_gtk.h b/chrome/browser/gtk/task_manager_gtk.h index 05e77ab..c236b15 100644 --- a/chrome/browser/gtk/task_manager_gtk.h +++ b/chrome/browser/gtk/task_manager_gtk.h @@ -145,6 +145,28 @@ class TaskManagerGtk : public TaskManagerModelObserver { CompareImpl(model, a, b, IDS_TASK_MANAGER_PROCESS_ID_COLUMN); } + // WebCore Image Cache sorting callback. + static gint CompareWebCoreImageCache(GtkTreeModel* model, GtkTreeIter* a, + GtkTreeIter* b, gpointer task_manager) { + return reinterpret_cast<TaskManagerGtk*>(task_manager)-> + CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_IMAGE_CACHE_COLUMN); + } + + // WebCore Scripts Cache sorting callback. + static gint CompareWebCoreScriptsCache(GtkTreeModel* model, GtkTreeIter* a, + GtkTreeIter* b, + gpointer task_manager) { + return reinterpret_cast<TaskManagerGtk*>(task_manager)-> + CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_SCRIPTS_CACHE_COLUMN); + } + + // WebCore CSS Cache sorting callback. + static gint CompareWebCoreCssCache(GtkTreeModel* model, GtkTreeIter* a, + GtkTreeIter* b, gpointer task_manager) { + return reinterpret_cast<TaskManagerGtk*>(task_manager)-> + CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_CSS_CACHE_COLUMN); + } + // Goats Teleported sorting callback. static gint CompareGoatsTeleported(GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer task_manager) { |