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

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

Issue 159616: gtk: Add the 'Stats for nerds' link to the task manager.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | « no previous file | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Queries the treeview for the selected rows, and kills those processes. 55 // Queries the treeview for the selected rows, and kills those processes.
56 void KillSelectedProcesses(); 56 void KillSelectedProcesses();
57 57
58 // Opens the context menu used to select the task manager columns. 58 // Opens the context menu used to select the task manager columns.
59 void ShowContextMenu(); 59 void ShowContextMenu();
60 60
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.
65 void OnLinkActivated();
66
64 // response signal handler that notifies us of dialog responses. 67 // response signal handler that notifies us of dialog responses.
65 static void OnResponse(GtkDialog* dialog, gint response_id, 68 static void OnResponse(GtkDialog* dialog, gint response_id,
66 TaskManagerGtk* task_manager); 69 TaskManagerGtk* task_manager);
67 70
68 // changed signal handler that is sent when the treeview selection changes. 71 // changed signal handler that is sent when the treeview selection changes.
69 static void OnSelectionChanged(GtkTreeSelection* selection, 72 static void OnSelectionChanged(GtkTreeSelection* selection,
70 TaskManagerGtk* task_manager); 73 TaskManagerGtk* task_manager);
71 74
72 // button-press-event handler that activates a process on double-click. 75 // button-press-event handler that activates a process on double-click.
73 static gboolean OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event, 76 static gboolean OnButtonPressEvent(GtkWidget* widget, GdkEventButton* event,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 scoped_ptr<ContextMenuController> menu_controller_; 109 scoped_ptr<ContextMenuController> menu_controller_;
107 110
108 // An open task manager window. There can only be one open at a time. This 111 // An open task manager window. There can only be one open at a time. This
109 // is reset to NULL when the window is closed. 112 // is reset to NULL when the window is closed.
110 static TaskManagerGtk* instance_; 113 static TaskManagerGtk* instance_;
111 114
112 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); 115 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk);
113 }; 116 };
114 117
115 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_ 118 #endif // CHROME_BROWSER_GTK_TASK_MANAGER_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698