| Index: ash/drag_drop/drag_drop_tracker.cc
|
| diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
|
| index 39b8bc0e1e3182e61f20a42b1ac68c43a93e2bd2..e6f221968c0d00657f9eecc4bb961ee36fc7b51d 100644
|
| --- a/ash/drag_drop/drag_drop_tracker.cc
|
| +++ b/ash/drag_drop/drag_drop_tracker.cc
|
| @@ -7,7 +7,6 @@
|
| #include "ash/public/cpp/shell_window_ids.h"
|
| #include "ash/shell.h"
|
| #include "ash/wm/root_window_finder.h"
|
| -#include "ash/wm_window.h"
|
| #include "ui/aura/client/window_parenting_client.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_event_dispatcher.h"
|
| @@ -69,8 +68,7 @@ aura::Window* DragDropTracker::GetTarget(const ui::LocatedEvent& event) {
|
| DCHECK(capture_window_.get());
|
| gfx::Point location_in_screen = event.location();
|
| ::wm::ConvertPointToScreen(capture_window_.get(), &location_in_screen);
|
| - aura::Window* root_window_at_point =
|
| - WmWindow::GetAuraWindow(wm::GetRootWindowAt(location_in_screen));
|
| + aura::Window* root_window_at_point = wm::GetRootWindowAt(location_in_screen);
|
| gfx::Point location_in_root = location_in_screen;
|
| ::wm::ConvertPointFromScreen(root_window_at_point, &location_in_root);
|
| return root_window_at_point->GetEventHandlerForPoint(location_in_root);
|
| @@ -85,10 +83,9 @@ ui::LocatedEvent* DragDropTracker::ConvertEvent(aura::Window* target,
|
| gfx::Point location_in_screen = event.location();
|
| ::wm::ConvertPointToScreen(capture_window_.get(), &location_in_screen);
|
| gfx::Point target_root_location = event.root_location();
|
| - aura::Window::ConvertPointToTarget(
|
| - capture_window_->GetRootWindow(),
|
| - WmWindow::GetAuraWindow(wm::GetRootWindowAt(location_in_screen)),
|
| - &target_root_location);
|
| + aura::Window::ConvertPointToTarget(capture_window_->GetRootWindow(),
|
| + wm::GetRootWindowAt(location_in_screen),
|
| + &target_root_location);
|
| return new ui::MouseEvent(
|
| event.type(), target_location, target_root_location,
|
| ui::EventTimeForNow(), event.flags(),
|
|
|