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

Unified Diff: ash/wm/window_state.h

Issue 144713003: [Refactor] Kill some dead code because it is no longer possible to drag maximized windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « ash/wm/drag_details.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h
index 42a9ef6c11e3e0f8e4d69f79a8bb55c86ccaee08..c46c86cf7e0575662c180fe2ac12d3d0dc04c0b7 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -23,7 +23,6 @@ class Rect;
}
namespace ash {
-class WindowResizer;
namespace wm {
class WindowStateDelegate;
@@ -175,7 +174,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
// Whether the window is being dragged.
bool is_dragged() const {
- return drag_details_ && drag_details_->window_resizer;
+ return drag_details_;
}
// Whether or not the window's position can be managed by the
@@ -233,9 +232,8 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
}
// Creates and takes ownership of a pointer to DragDetails when resizing is
- // active. This should be done before a resizer gets created. Returns true
- // if |window| is resizable based on |window_component|, false otherwise.
- bool CreateDragDetails(aura::Window* window,
+ // active. This should be done before a resizer gets created.
+ void CreateDragDetails(aura::Window* window,
const gfx::Point& point_in_parent,
int window_component,
aura::client::WindowMoveSource source);
@@ -248,13 +246,6 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
const DragDetails* drag_details() const { return drag_details_.get(); }
DragDetails* drag_details() { return drag_details_.get(); }
- // Returns a pointer to WindowResizer when resizing is active.
- // It can be used to avoid creating multiple instances of a WindowResizer for
- // the same window.
- WindowResizer* window_resizer() {
- return drag_details_ ? drag_details_->window_resizer : NULL;
- }
-
// aura::WindowObserver overrides:
virtual void OnWindowPropertyChanged(aura::Window* window,
const void* key,
« no previous file with comments | « ash/wm/drag_details.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698