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

Unified Diff: views/widget/native_widget_aura.cc

Issue 8468029: Fix NWAura to use property to get restored bounds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix 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 | « ui/aura/window.h ('k') | views/widget/widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_aura.cc
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc
index 4ff026efd56b3cf2cdc171c849595264aa28fecd..d3cd17922765d7b3b0e9a6dc61666ec15570212c 100644
--- a/views/widget/native_widget_aura.cc
+++ b/views/widget/native_widget_aura.cc
@@ -325,7 +325,9 @@ gfx::Rect NativeWidgetAura::GetClientAreaScreenBounds() const {
}
gfx::Rect NativeWidgetAura::GetRestoredBounds() const {
- return window_->restore_bounds();
+ gfx::Rect* restore_bounds = reinterpret_cast<gfx::Rect*>(
+ window_->GetProperty(aura::kRestoreBoundsKey));
+ return restore_bounds ? *restore_bounds : window_->bounds();
}
void NativeWidgetAura::SetBounds(const gfx::Rect& bounds) {
« no previous file with comments | « ui/aura/window.h ('k') | views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698