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

Side by Side Diff: chrome/browser/gtk/task_manager_gtk.h

Issue 251046: Make the cache columns in the Task Manager sortable and only displayed once p... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months 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
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac.mm ('k') | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_
6 #define CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ 6 #define CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 CompareImpl(model, a, b, IDS_TASK_MANAGER_NET_COLUMN); 138 CompareImpl(model, a, b, IDS_TASK_MANAGER_NET_COLUMN);
139 } 139 }
140 140
141 // Process ID sorting callback. 141 // Process ID sorting callback.
142 static gint CompareProcessID(GtkTreeModel* model, GtkTreeIter* a, 142 static gint CompareProcessID(GtkTreeModel* model, GtkTreeIter* a,
143 GtkTreeIter* b, gpointer task_manager) { 143 GtkTreeIter* b, gpointer task_manager) {
144 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> 144 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
145 CompareImpl(model, a, b, IDS_TASK_MANAGER_PROCESS_ID_COLUMN); 145 CompareImpl(model, a, b, IDS_TASK_MANAGER_PROCESS_ID_COLUMN);
146 } 146 }
147 147
148 // WebCore Image Cache sorting callback.
149 static gint CompareWebCoreImageCache(GtkTreeModel* model, GtkTreeIter* a,
150 GtkTreeIter* b, gpointer task_manager) {
151 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
152 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_IMAGE_CACHE_COLUMN);
153 }
154
155 // WebCore Scripts Cache sorting callback.
156 static gint CompareWebCoreScriptsCache(GtkTreeModel* model, GtkTreeIter* a,
157 GtkTreeIter* b,
158 gpointer task_manager) {
159 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
160 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_SCRIPTS_CACHE_COLUMN);
161 }
162
163 // WebCore CSS Cache sorting callback.
164 static gint CompareWebCoreCssCache(GtkTreeModel* model, GtkTreeIter* a,
165 GtkTreeIter* b, gpointer task_manager) {
166 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
167 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_CSS_CACHE_COLUMN);
168 }
169
148 // Goats Teleported sorting callback. 170 // Goats Teleported sorting callback.
149 static gint CompareGoatsTeleported(GtkTreeModel* model, GtkTreeIter* a, 171 static gint CompareGoatsTeleported(GtkTreeModel* model, GtkTreeIter* a,
150 GtkTreeIter* b, gpointer task_manager) { 172 GtkTreeIter* b, gpointer task_manager) {
151 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> 173 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
152 CompareImpl(model, a, b, IDS_TASK_MANAGER_GOATS_TELEPORTED_COLUMN); 174 CompareImpl(model, a, b, IDS_TASK_MANAGER_GOATS_TELEPORTED_COLUMN);
153 } 175 }
154 176
155 // The task manager. 177 // The task manager.
156 TaskManager* task_manager_; 178 TaskManager* task_manager_;
157 179
(...skipping 19 matching lines...) Expand all
177 GtkAccelGroup* accel_group_; 199 GtkAccelGroup* accel_group_;
178 200
179 // An open task manager window. There can only be one open at a time. This 201 // An open task manager window. There can only be one open at a time. This
180 // is reset to NULL when the window is closed. 202 // is reset to NULL when the window is closed.
181 static TaskManagerGtk* instance_; 203 static TaskManagerGtk* instance_;
182 204
183 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); 205 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk);
184 }; 206 };
185 207
186 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ 208 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/task_manager_mac.mm ('k') | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698