summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_tree_host_win.cc
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 /ui/aura/window_tree_host_win.cc
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 'ui/aura/window_tree_host_win.cc')
-rw-r--r--ui/aura/window_tree_host_win.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc
index 2d592e5..33d50e6 100644
--- a/ui/aura/window_tree_host_win.cc
+++ b/ui/aura/window_tree_host_win.cc
@@ -170,8 +170,7 @@ void WindowTreeHostWin::ReleaseCapture() {
}
bool WindowTreeHostWin::QueryMouseLocation(gfx::Point* location_return) {
- client::CursorClient* cursor_client =
- client::GetCursorClient(GetDispatcher()->window());
+ client::CursorClient* cursor_client = client::GetCursorClient(window());
if (cursor_client && !cursor_client->IsMouseEventsEnabled()) {
*location_return = gfx::Point(0, 0);
return false;