OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_TASK_MANAGER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ | 6 #define CHROME_BROWSER_UI_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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 CompareImpl(model, a, b, IDS_TASK_MANAGER_FPS_COLUMN); | 197 CompareImpl(model, a, b, IDS_TASK_MANAGER_FPS_COLUMN); |
198 } | 198 } |
199 | 199 |
200 // Sqlite memory sorting callback. | 200 // Sqlite memory sorting callback. |
201 static gint CompareSqliteMemoryUsed(GtkTreeModel* model, GtkTreeIter* a, | 201 static gint CompareSqliteMemoryUsed(GtkTreeModel* model, GtkTreeIter* a, |
202 GtkTreeIter* b, gpointer task_manager) { | 202 GtkTreeIter* b, gpointer task_manager) { |
203 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> | 203 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> |
204 CompareImpl(model, a, b, IDS_TASK_MANAGER_SQLITE_MEMORY_USED_COLUMN); | 204 CompareImpl(model, a, b, IDS_TASK_MANAGER_SQLITE_MEMORY_USED_COLUMN); |
205 } | 205 } |
206 | 206 |
| 207 // NaCl Debug Stub Port sorting callback. |
| 208 static gint CompareNaClDebugStubPort(GtkTreeModel* model, GtkTreeIter* a, |
| 209 GtkTreeIter* b, gpointer task_manager) { |
| 210 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> |
| 211 CompareImpl(model, a, b, IDS_TASK_MANAGER_NACL_DEBUG_STUB_PORT_COLUMN); |
| 212 } |
| 213 |
207 // Goats Teleported sorting callback. | 214 // Goats Teleported sorting callback. |
208 static gint CompareGoatsTeleported(GtkTreeModel* model, GtkTreeIter* a, | 215 static gint CompareGoatsTeleported(GtkTreeModel* model, GtkTreeIter* a, |
209 GtkTreeIter* b, gpointer task_manager) { | 216 GtkTreeIter* b, gpointer task_manager) { |
210 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> | 217 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> |
211 CompareImpl(model, a, b, IDS_TASK_MANAGER_GOATS_TELEPORTED_COLUMN); | 218 CompareImpl(model, a, b, IDS_TASK_MANAGER_GOATS_TELEPORTED_COLUMN); |
212 } | 219 } |
213 | 220 |
214 // The task manager. | 221 // The task manager. |
215 TaskManager* task_manager_; | 222 TaskManager* task_manager_; |
216 | 223 |
(...skipping 27 matching lines...) Expand all Loading... |
244 | 251 |
245 // We edit the selection in the OnSelectionChanged handler, and we use this | 252 // We edit the selection in the OnSelectionChanged handler, and we use this |
246 // variable to prevent ourselves from handling further changes that we | 253 // variable to prevent ourselves from handling further changes that we |
247 // ourselves caused. | 254 // ourselves caused. |
248 bool ignore_selection_changed_; | 255 bool ignore_selection_changed_; |
249 | 256 |
250 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); | 257 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); |
251 }; | 258 }; |
252 | 259 |
253 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ | 260 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ |
OLD | NEW |