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

Unified Diff: ash/wm/workspace/workspace_event_filter.h

Issue 9467021: Attempt 3: Makes managed mode constrain the height of windows so they don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Da fix Created 8 years, 10 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/window_resizer.cc ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_event_filter.h
diff --git a/ash/wm/workspace/workspace_event_filter.h b/ash/wm/workspace/workspace_event_filter.h
index 2c15c379a90b578f5fe4f6e1d454e3f96c6add3c..5598185b4b694281d08c4abf1387ee6d43ea7403 100644
--- a/ash/wm/workspace/workspace_event_filter.h
+++ b/ash/wm/workspace/workspace_event_filter.h
@@ -30,27 +30,17 @@ class WorkspaceEventFilter : public ToplevelWindowEventFilter,
// Overriden from WindowObserver:
virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE;
- private:
- enum DragState {
- DRAG_NONE,
- DRAG_MOVE,
- DRAG_RESIZE
- };
-
- // If the mouse is currently over a portion of the window that should
- // trigger a drag or resize, drag_state_ is set appropriately and true
- // is returned. If the mouse is not over a portion of the window that should
- // trigger a more or resize, drag_state_ is not updated and false is returned.
- bool UpdateDragState();
+ protected:
+ // Overriden from ToplevelWindowEventFilter:
+ virtual WindowResizer* CreateWindowResizer(aura::Window* window,
+ const gfx::Point& point,
+ int window_component) OVERRIDE;
+ private:
// Updates the top-level window under the mouse so that we can change
// the look of the caption area based on mouse-hover.
void UpdateHoveredWindow(aura::Window* toplevel);
- aura::Window* owner_;
-
- DragState drag_state_;
-
// Top-level window under the mouse cursor.
aura::Window* hovered_window_;
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698