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

Unified Diff: ui/views/widget/widget_delegate.cc

Issue 55303006: Make sure the non browser/non app widget is fully visible when created on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months 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 | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget_delegate.cc
diff --git a/ui/views/widget/widget_delegate.cc b/ui/views/widget/widget_delegate.cc
index 37816da4eeff77d8ad210ef0af47894d45071054..fbace27c316a297e2e82a4e5783fe91293c8a2ef 100644
--- a/ui/views/widget/widget_delegate.cc
+++ b/ui/views/widget/widget_delegate.cc
@@ -118,6 +118,7 @@ void WidgetDelegate::SaveWindowPlacement(const gfx::Rect& bounds,
}
bool WidgetDelegate::GetSavedWindowPlacement(
+ const Widget* widget,
gfx::Rect* bounds,
ui::WindowShowState* show_state) const {
std::string window_name = GetWindowName();
@@ -125,7 +126,7 @@ bool WidgetDelegate::GetSavedWindowPlacement(
return false;
return ViewsDelegate::views_delegate->GetSavedWindowPlacement(
- window_name, bounds, show_state);
+ widget, window_name, bounds, show_state);
}
bool WidgetDelegate::ShouldRestoreWindowSize() const {
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698