summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 03:42:27 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-04 03:42:27 +0000
commit2374d1813659c2420eda25c884c5f943b292a64d (patch)
tree580d99257dd5a9d6a84de4fa70d583d17e985b4c /ash/drag_drop
parentb5126da4daa8f0f0f408afb93e0683f1cf34c82a (diff)
downloadchromium_src-2374d1813659c2420eda25c884c5f943b292a64d.zip
chromium_src-2374d1813659c2420eda25c884c5f943b292a64d.tar.gz
chromium_src-2374d1813659c2420eda25c884c5f943b292a64d.tar.bz2
Window ownership -> WindowTreeHost
Replaces Window::GetDispatcher with Window::GetHost(). Had to clear ScreenPositionClient property prior to window teardown as tests on desktop delete it prior to destroying the window hierarchy. Unhooking the property appears to have no ill-effect. R=sky@chromium.org http://crbug.com/308843 Review URL: https://codereview.chromium.org/184903003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop')
-rw-r--r--ash/drag_drop/drag_drop_controller_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/drag_drop/drag_drop_controller_unittest.cc b/ash/drag_drop/drag_drop_controller_unittest.cc
index 85821a7..4a3e9a8 100644
--- a/ash/drag_drop/drag_drop_controller_unittest.cc
+++ b/ash/drag_drop/drag_drop_controller_unittest.cc
@@ -283,7 +283,7 @@ void DispatchGesture(ui::EventType gesture_type, gfx::Point location) {
ui::EventTimeForNow(),
ui::GestureEventDetails(gesture_type, 0, 0),
1);
- Shell::GetPrimaryRootWindow()->GetDispatcher()->DispatchGestureEvent(
+ Shell::GetPrimaryRootWindow()->GetHost()->dispatcher()->DispatchGestureEvent(
&gesture_event);
}
@@ -738,7 +738,7 @@ TEST_F(DragDropControllerTest, SyntheticEventsDuringDragDrop) {
ui::MouseEvent mouse_move(ui::ET_MOUSE_MOVED, mouse_move_location,
mouse_move_location, 0, 0);
ui::EventDispatchDetails details = Shell::GetPrimaryRootWindow()->
- GetDispatcher()->OnEventFromSource(&mouse_move);
+ GetHost()->dispatcher()->OnEventFromSource(&mouse_move);
ASSERT_FALSE(details.dispatcher_destroyed);
}