| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 GdkEventButton*); | 101 GdkEventButton*); |
| 102 | 102 |
| 103 // Handles an accelerator being pressed. | 103 // Handles an accelerator being pressed. |
| 104 CHROMEG_CALLBACK_3(TaskManagerGtk, gboolean, OnGtkAccelerator, | 104 CHROMEG_CALLBACK_3(TaskManagerGtk, gboolean, OnGtkAccelerator, |
| 105 GtkAccelGroup*, GObject*, guint, GdkModifierType); | 105 GtkAccelGroup*, GObject*, guint, GdkModifierType); |
| 106 | 106 |
| 107 // Page sorting callback. | 107 // Page sorting callback. |
| 108 static gint ComparePage(GtkTreeModel* model, GtkTreeIter* a, | 108 static gint ComparePage(GtkTreeModel* model, GtkTreeIter* a, |
| 109 GtkTreeIter* b, gpointer task_manager) { | 109 GtkTreeIter* b, gpointer task_manager) { |
| 110 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> | 110 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> |
| 111 CompareImpl(model, a, b, IDS_TASK_MANAGER_PAGE_COLUMN); | 111 CompareImpl(model, a, b, IDS_TASK_MANAGER_TASK_COLUMN); |
| 112 } | 112 } |
| 113 | 113 |
| 114 // Profile name sorting callback. | 114 // Profile name sorting callback. |
| 115 static gint CompareProfileName(GtkTreeModel* model, GtkTreeIter* a, | 115 static gint CompareProfileName(GtkTreeModel* model, GtkTreeIter* a, |
| 116 GtkTreeIter* b, gpointer task_manager) { | 116 GtkTreeIter* b, gpointer task_manager) { |
| 117 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> | 117 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> |
| 118 CompareImpl(model, a, b, IDS_TASK_MANAGER_PROFILE_NAME_COLUMN); | 118 CompareImpl(model, a, b, IDS_TASK_MANAGER_PROFILE_NAME_COLUMN); |
| 119 } | 119 } |
| 120 | 120 |
| 121 // Shared memory sorting callback. | 121 // Shared memory sorting callback. |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // ourselves caused. | 240 // ourselves caused. |
| 241 bool ignore_selection_changed_; | 241 bool ignore_selection_changed_; |
| 242 | 242 |
| 243 // If true, background resources are rendered with a yellow highlight. | 243 // If true, background resources are rendered with a yellow highlight. |
| 244 bool highlight_background_resources_; | 244 bool highlight_background_resources_; |
| 245 | 245 |
| 246 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); | 246 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ | 249 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ |
| OLD | NEW |