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

Unified Diff: chrome/browser/ui/views/html_dialog_view.cc

Issue 8835005: Aura Task Manager: Remember the dialog size before closing task manager. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/html_dialog_view.cc
diff --git a/chrome/browser/ui/views/html_dialog_view.cc b/chrome/browser/ui/views/html_dialog_view.cc
index 9e2134104d80e96bd163af6a4b360219ec310ddb..06201143891fdf8bf40d7e286d8cac2821a78cf7 100644
--- a/chrome/browser/ui/views/html_dialog_view.cc
+++ b/chrome/browser/ui/views/html_dialog_view.cc
@@ -177,6 +177,11 @@ void HtmlDialogView::OnDialogClosed(const std::string& json_retval) {
if (delegate_) {
HtmlDialogUIDelegate* dialog_delegate = delegate_;
delegate_ = NULL; // We will not communicate further with the delegate.
+
+ // Store the dialog bounds.
+ gfx::Rect dialog_bounds = GetWidget()->GetClientAreaScreenBounds();
yoshiki 2011/12/07 08:02:50 nit: Please add "const" modifier.
NaveenBobbili (Motorola) 2011/12/07 08:14:59 Done.
+ dialog_delegate->StoreDialogSize(dialog_bounds);
+
dialog_delegate->OnDialogClosed(json_retval);
}
GetWidget()->Close();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698