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

Unified Diff: ash/shell.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/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index ed8ba9714e447beedae38df9426ce400c26ed6da..741dcde6f28d7c92ded6597e8eea3357769f689d 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -178,6 +178,15 @@ class ASH_EXPORT Shell : ash::CursorDelegate {
// returns the primary root window only.
static RootWindowList GetAllRootWindows();
+ // If |location_in_root| is inside |root_window|'s bounds, just returns a pair
+ // of |root_window| and |location_in_root| as-is. If |location_in_root| is
+ // outside the |root_window|, the function tries to find another root window
+ // where the cursor is on and returns a pair of the window and location in the
+ // window's coordinates.
+ static std::pair<aura::RootWindow*, gfx::Point> NormalizeLocationInDragEvent(
+ aura::RootWindow* root_window,
+ gfx::Point location_in_root);
+
static aura::Window* GetContainer(aura::RootWindow* root_window,
int container_id);
« no previous file with comments | « ash/display/mouse_cursor_event_filter.cc ('k') | ash/shell.cc » ('j') | ash/shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698