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

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

Issue 173308: Linux: set the initial size of the "Page" column in the task manager to fit the dialog. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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