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

Unified Diff: ash/drag_drop/drag_drop_tracker.h

Issue 11031026: Remove RootWindow reference from DragDropTracker. RootWindow reference in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 2 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/drag_drop/drag_drop_controller.cc ('k') | ash/drag_drop/drag_drop_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_tracker.h
diff --git a/ash/drag_drop/drag_drop_tracker.h b/ash/drag_drop/drag_drop_tracker.h
index 220cc12a60241c938100fb63f26c9c419a65df5b..56b63094cbaffd1564cd54aeb96d816b35fbfd2e 100644
--- a/ash/drag_drop/drag_drop_tracker.h
+++ b/ash/drag_drop/drag_drop_tracker.h
@@ -11,7 +11,6 @@
#include "ui/base/events/event.h"
namespace aura {
-class RootWindow;
class Window;
}
@@ -25,15 +24,15 @@ namespace internal {
// is supported for now.
class ASH_EXPORT DragDropTracker {
public:
- explicit DragDropTracker(aura::RootWindow* root_window);
+ DragDropTracker();
~DragDropTracker();
- // Gets the target located at |event| in the coordinates of the root window
- // given to the constructor.
+ // Gets the target located at |event| in the coordinates of the active root
+ // window.
aura::Window* GetTarget(const ui::LocatedEvent& event);
- // Converts the locations of |event| in the coordinates of the root window
- // given to the constructor to the ones in |target|'s coordinates.
+ // Converts the locations of |event| in the coordinates of the active root
+ // window to the ones in |target|'s coordinates.
// Caller takes ownership of the returned object.
ui::MouseEvent* ConvertMouseEvent(aura::Window* target,
const ui::MouseEvent& event);
« no previous file with comments | « ash/drag_drop/drag_drop_controller.cc ('k') | ash/drag_drop/drag_drop_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698