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

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

Issue 10835047: Allow the cursor to warp even when a window is dragged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: do not move modal windows to another display Created 8 years, 5 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/workspace/workspace_window_resizer.h
diff --git a/ash/wm/workspace/workspace_window_resizer.h b/ash/wm/workspace/workspace_window_resizer.h
index 3b28e1e23642c1bd5fcc64d2199e84e917eeb136..1a6f4b301a2de711f8d0e0e519e689fd6f928005 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -49,7 +49,8 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
}
// Overridden from WindowResizer:
- virtual void Drag(const gfx::Point& location, int event_flags) OVERRIDE;
+ virtual void Drag(const gfx::Point& location_in_screen,
+ int event_flags) OVERRIDE;
virtual void CompleteDrag(int event_flags) OVERRIDE;
virtual void RevertDrag() OVERRIDE;
@@ -119,6 +120,9 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// snapping should be used.
SnapType GetSnapType(const gfx::Point& location) const;
+ // Returns true if we should allow the cursor to warp.
+ bool ShouldAllowCursorWarp() const;
+
aura::Window* window() const { return details_.window; }
const Details details_;

Powered by Google App Engine
This is Rietveld 408576698