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

Unified Diff: ash/wm/property_util.cc

Issue 11574041: Move WindowResizer to CoreWM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « ash/wm/gestures/two_finger_drag_handler.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/property_util.cc
===================================================================
--- ash/wm/property_util.cc (revision 173169)
+++ ash/wm/property_util.cc (working copy)
@@ -13,6 +13,7 @@
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/rect.h"
+#include "ui/views/corewm/window_util.h"
namespace ash {
namespace {
@@ -20,7 +21,7 @@
} // namespace
void SetRestoreBoundsInScreen(aura::Window* window, const gfx::Rect& bounds) {
- window->SetProperty(aura::client::kRestoreBoundsKey, new gfx::Rect(bounds));
+ views::corewm::SetRestoreBoundsInScreen(window, bounds);
}
void SetRestoreBoundsInParent(aura::Window* window, const gfx::Rect& bounds) {
@@ -29,7 +30,7 @@
}
const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window) {
- return window->GetProperty(aura::client::kRestoreBoundsKey);
+ return views::corewm::GetRestoreBoundsInScreen(window);
}
gfx::Rect GetRestoreBoundsInParent(aura::Window* window) {
« no previous file with comments | « ash/wm/gestures/two_finger_drag_handler.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698