From a5eb6fc090ff177d70e886b263f02055aedd04dc Mon Sep 17 00:00:00 2001 From: "derat@google.com" Date: Wed, 29 Jul 2009 21:52:28 +0000 Subject: Linux: Save and restore bookmark manager and task manager window size. To test, did the following under Metacity/GNOME: - remove window_placement prefs from "Local State" file - start chrome - open bookmark manager with Ctrl-Shift-B - resize window to be small and close it - reopen bookmark manager and confirm that its window is the same size as when closed - maximize bookmark manager and close it - reopen bookmark manager and confirm that it's still small - minimize bookmark manager before closing it; confirm that the size remains the same - restart chrome and confirm that the window size is still saved - repeat the above tests with the task manager (which is a bit quicker, since it doesn't allow maximizing or minimizing) BUG=15488 TEST=see above Review URL: http://codereview.chromium.org/160330 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22001 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/task_manager_gtk.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/gtk/task_manager_gtk.h') diff --git a/chrome/browser/gtk/task_manager_gtk.h b/chrome/browser/gtk/task_manager_gtk.h index 6d4c366..e5ce387 100644 --- a/chrome/browser/gtk/task_manager_gtk.h +++ b/chrome/browser/gtk/task_manager_gtk.h @@ -33,6 +33,9 @@ class TaskManagerGtk : public TaskManagerModelObserver { // Initializes the task manager dialog. void Init(); + // Set |dialog_|'s initial size, using its previous size if that was saved. + void SetInitialDialogSize(); + // Connects the ctrl-w accelerator to the dialog. void ConnectAccelerators(); -- cgit v1.1