Index: ui/aura/window_tree_host_win.cc |
diff --git a/ui/aura/window_tree_host_win.cc b/ui/aura/window_tree_host_win.cc |
index 9bbb44b0f535ae02c2f390fc7774f5b5ed85b1e2..adf56e91ac76e7092f40d754d9278d016efe6a82 100644 |
--- a/ui/aura/window_tree_host_win.cc |
+++ b/ui/aura/window_tree_host_win.cc |
@@ -126,24 +126,6 @@ void WindowTreeHostWin::ReleaseCapture() { |
} |
} |
-bool WindowTreeHostWin::QueryMouseLocation(gfx::Point* location_return) { |
- client::CursorClient* cursor_client = client::GetCursorClient(window()); |
- if (cursor_client && !cursor_client->IsMouseEventsEnabled()) { |
- *location_return = gfx::Point(0, 0); |
- return false; |
- } |
- |
- POINT pt; |
- GetCursorPos(&pt); |
- ScreenToClient(hwnd(), &pt); |
- const gfx::Size size = GetBounds().size(); |
- *location_return = |
- gfx::Point(max(0, min(size.width(), static_cast<int>(pt.x))), |
- max(0, min(size.height(), static_cast<int>(pt.y)))); |
- return (pt.x >= 0 && static_cast<int>(pt.x) < size.width() && |
- pt.y >= 0 && static_cast<int>(pt.y) < size.height()); |
-} |
- |
void WindowTreeHostWin::SetCursorNative(gfx::NativeCursor native_cursor) { |
// Custom web cursors are handled directly. |
if (native_cursor == ui::kCursorCustom) |