Index: ui/aura/window_tree_host_x11.cc |
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc |
index bd897d9c76448c88b7388c830f922d0d55f260f6..5fec30cff62fda35b1975630facf2dfe77f50c88 100644 |
--- a/ui/aura/window_tree_host_x11.cc |
+++ b/ui/aura/window_tree_host_x11.cc |
@@ -438,30 +438,6 @@ void WindowTreeHostX11::ReleaseCapture() { |
// TODO(oshima): Release x input. |
} |
-bool WindowTreeHostX11::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; |
- } |
- |
- ::Window root_return, child_return; |
- int root_x_return, root_y_return, win_x_return, win_y_return; |
- unsigned int mask_return; |
- XQueryPointer(xdisplay_, |
- xwindow_, |
- &root_return, |
- &child_return, |
- &root_x_return, &root_y_return, |
- &win_x_return, &win_y_return, |
- &mask_return); |
- *location_return = gfx::Point(max(0, min(bounds_.width(), win_x_return)), |
- max(0, min(bounds_.height(), win_y_return))); |
- return (win_x_return >= 0 && win_x_return < bounds_.width() && |
- win_y_return >= 0 && win_y_return < bounds_.height()); |
-} |
- |
void WindowTreeHostX11::PostNativeEvent( |
const base::NativeEvent& native_event) { |
DCHECK(xwindow_); |