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

Unified Diff: ash/wm/default_window_resizer.cc

Issue 2897993003: chromeos: converts WindowResizer to aura::Window (Closed)
Patch Set: tweak Created 3 years, 7 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
Index: ash/wm/default_window_resizer.cc
diff --git a/ash/wm/default_window_resizer.cc b/ash/wm/default_window_resizer.cc
index eaf6b020980ed5a7fa9e4748066e38f78853921d..8ae34ea0c921f66260b8e64d074a9d1fe47d08f5 100644
--- a/ash/wm/default_window_resizer.cc
+++ b/ash/wm/default_window_resizer.cc
@@ -6,7 +6,7 @@
#include "ash/shell_port.h"
#include "ash/wm/window_state.h"
-#include "ash/wm_window.h"
+#include "ui/aura/window.h"
namespace ash {
@@ -22,7 +22,7 @@ DefaultWindowResizer* DefaultWindowResizer::Create(
void DefaultWindowResizer::Drag(const gfx::Point& location, int event_flags) {
gfx::Rect bounds(CalculateBoundsForDrag(location));
- if (bounds != GetTarget()->GetBounds()) {
+ if (bounds != GetTarget()->bounds()) {
if (!did_move_or_resize_ && !details().restore_bounds.IsEmpty())
window_state_->ClearRestoreBounds();
did_move_or_resize_ = true;

Powered by Google App Engine
This is Rietveld 408576698