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

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: Fixed review comment. 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..7c5c5da2b9ad5dcb7c3382c063af01ae656ec25a 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.
+ const gfx::Rect dialog_bounds = GetWidget()->GetClientAreaScreenBounds();
+ 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