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

Unified Diff: chrome/browser/ui/gtk/html_dialog_gtk.cc

Issue 8741010: TaskManager: Added functionality to remember the size of the task manager dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/html_dialog_ui.h » ('j') | chrome/browser/ui/webui/html_dialog_ui.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/html_dialog_gtk.cc
diff --git a/chrome/browser/ui/gtk/html_dialog_gtk.cc b/chrome/browser/ui/gtk/html_dialog_gtk.cc
index ff6945a9d6a4fc7e5c629701f978f4449594f104..5d0ae870a2a64af22b3e6784ac0caa0495f6aab8 100644
--- a/chrome/browser/ui/gtk/html_dialog_gtk.cc
+++ b/chrome/browser/ui/gtk/html_dialog_gtk.cc
@@ -115,8 +115,14 @@ void HtmlDialogGtk::OnDialogClosed(const std::string& json_retval) {
if (delegate_) {
HtmlDialogUIDelegate* dialog_delegate = delegate_;
delegate_ = NULL; // We will not communicate further with the delegate.
+
+ // Stores the dialog bounds.
James Hawkins 2011/11/30 16:20:32 s/Stores/Store/
NaveenBobbili (Motorola) 2011/12/01 07:31:21 Done.
+ gfx::Rect dialog_bounds = gtk_util::GetDialogBounds(GTK_WIDGET(dialog_));
+ dialog_delegate->StoreDialogSize(dialog_bounds);
+
dialog_delegate->OnDialogClosed(json_retval);
}
+
gtk_widget_destroy(dialog_);
delete this;
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/html_dialog_ui.h » ('j') | chrome/browser/ui/webui/html_dialog_ui.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698