Commit b1c8b494 authored by qghc36@motorola.com's avatar qghc36@motorola.com

Aura Task Manager: Remember the dialog size before closing task manager.


BUG=105117
TEST=None


Review URL: http://codereview.chromium.org/8835005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113560 0039d316-1c4b-4281-b951-d872f2087c98
parent be6a084d
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment