diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 20:24:01 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-06 20:24:01 +0000 |
commit | 8d140942adb41a0eaf0d1e815300d0d4a83d5ef3 (patch) | |
tree | 0025db4a2d72d8d654a561e06005f7fc1113f217 /chrome/browser/gtk/task_manager_gtk.h | |
parent | 5fcd543266ddd69074d102cc3fe7a1958a2854d5 (diff) | |
download | chromium_src-8d140942adb41a0eaf0d1e815300d0d4a83d5ef3.zip chromium_src-8d140942adb41a0eaf0d1e815300d0d4a83d5ef3.tar.gz chromium_src-8d140942adb41a0eaf0d1e815300d0d4a83d5ef3.tar.bz2 |
Activate the currently selected process when the user double clicks the task manager treeview.
BUG=11392
TEST=Open the task manager and double click different processes. Those tabs should be activated.
Review URL: http://codereview.chromium.org/155098
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19980 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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/task_manager_gtk.h b/chrome/browser/gtk/task_manager_gtk.h index 7336522..e90ed18 100644 --- a/chrome/browser/gtk/task_manager_gtk.h +++ b/chrome/browser/gtk/task_manager_gtk.h @@ -52,6 +52,9 @@ class TaskManagerGtk : public TaskManagerModelObserver { // Opens the context menu used to select the task manager columns. void ShowContextMenu(); + // Activates the tab associated with the focused row. + void ActivateFocusedTab(); + // response signal handler that notifies us of dialog responses. static void OnResponse(GtkDialog* dialog, gint response_id, TaskManagerGtk* task_manager); @@ -60,6 +63,10 @@ class TaskManagerGtk : public TaskManagerModelObserver { static void OnSelectionChanged(GtkTreeSelection* selection, TaskManagerGtk* task_manager); + // button-press-event handler that activates a process on double-click. + static gboolean OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event, + TaskManagerGtk* task_manager); + // button-release-event handler that opens the right-click context menu. static gboolean OnButtonReleaseEvent(GtkWidget* widget, GdkEventButton* event, TaskManagerGtk* task_manager); |