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

Unified Diff: ui/platform_window/win/win_window.cc

Issue 2925853002: Flag mouse messages received when cursor is hidden.
Patch Set: Rebase Created 3 years, 6 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/events/win/events_win.cc ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/win/win_window.cc
diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc
index f2830c16d7c516a5beff5a8e5c63553864c9d87a..745b7f71fc65dbc547207a035128866d389bec81 100644
--- a/ui/platform_window/win/win_window.cc
+++ b/ui/platform_window/win/win_window.cc
@@ -136,6 +136,8 @@ LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) {
std::unique_ptr<Event> event = EventFromNative(msg);
if (IsMouseEventFromTouch(message))
event->set_flags(event->flags() | EF_FROM_TOUCH);
+ if (IsWindowsCursorHidden())
+ event->set_flags(event->flags() | EF_CURSOR_HIDDEN);
if (!(event->flags() & ui::EF_IS_NON_CLIENT))
delegate_->DispatchEvent(event.get());
SetMsgHandled(event->handled());
« no previous file with comments | « ui/events/win/events_win.cc ('k') | ui/views/animation/ink_drop_host_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698