Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(599)

Unified Diff: ui/aura/window_tree_host_win.cc

Issue 251743004: aura: Remove WindowTreeHost::QueryMouseLocation(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_tree_host_win.h ('k') | ui/aura/window_tree_host_x11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « ui/aura/window_tree_host_win.h ('k') | ui/aura/window_tree_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698