| OLD | NEW |
| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // Activates the tab associated with the focused row. | 61 // Activates the tab associated with the focused row. |
| 62 void ActivateFocusedTab(); | 62 void ActivateFocusedTab(); |
| 63 | 63 |
| 64 // Opens about:memory in a new foreground tab. | 64 // Opens about:memory in a new foreground tab. |
| 65 void OnLinkActivated(); | 65 void OnLinkActivated(); |
| 66 | 66 |
| 67 // response signal handler that notifies us of dialog responses. | 67 // response signal handler that notifies us of dialog responses. |
| 68 static void OnResponse(GtkDialog* dialog, gint response_id, | 68 static void OnResponse(GtkDialog* dialog, gint response_id, |
| 69 TaskManagerGtk* task_manager); | 69 TaskManagerGtk* task_manager); |
| 70 | 70 |
| 71 // realize signal handler to set the page column's initial size. |
| 72 static void OnTreeViewRealize(GtkTreeView* treeview, |
| 73 TaskManagerGtk* task_manager); |
| 74 |
| 71 // changed signal handler that is sent when the treeview selection changes. | 75 // changed signal handler that is sent when the treeview selection changes. |
| 72 static void OnSelectionChanged(GtkTreeSelection* selection, | 76 static void OnSelectionChanged(GtkTreeSelection* selection, |
| 73 TaskManagerGtk* task_manager); | 77 TaskManagerGtk* task_manager); |
| 74 | 78 |
| 75 // button-press-event handler that activates a process on double-click. | 79 // button-press-event handler that activates a process on double-click. |
| 76 static gboolean OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event, | 80 static gboolean OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event, |
| 77 TaskManagerGtk* task_manager); | 81 TaskManagerGtk* task_manager); |
| 78 | 82 |
| 79 // button-release-event handler that opens the right-click context menu. | 83 // button-release-event handler that opens the right-click context menu. |
| 80 static gboolean OnButtonReleaseEvent(GtkWidget* widget, GdkEventButton* event, | 84 static gboolean OnButtonReleaseEvent(GtkWidget* widget, GdkEventButton* event, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 109 scoped_ptr<ContextMenuController> menu_controller_; | 113 scoped_ptr<ContextMenuController> menu_controller_; |
| 110 | 114 |
| 111 // An open task manager window. There can only be one open at a time. This | 115 // An open task manager window. There can only be one open at a time. This |
| 112 // is reset to NULL when the window is closed. | 116 // is reset to NULL when the window is closed. |
| 113 static TaskManagerGtk* instance_; | 117 static TaskManagerGtk* instance_; |
| 114 | 118 |
| 115 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); | 119 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ | 122 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ |
| OLD | NEW |