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

Unified Diff: ui/events/win/events_win.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/event_utils.h ('k') | ui/platform_window/win/win_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/win/events_win.cc
diff --git a/ui/events/win/events_win.cc b/ui/events/win/events_win.cc
index 06d5291fcf3c6d85d71bcf623630fcf7c3c13416..61ed30b9a57e5cd9a2d0a6089f72664d029c84a3 100644
--- a/ui/events/win/events_win.cc
+++ b/ui/events/win/events_win.cc
@@ -396,6 +396,14 @@ bool IsMouseEventFromTouch(UINT message) {
MOUSEEVENTF_FROMTOUCH;
}
+bool IsWindowsCursorHidden() {
+ CURSORINFO c = {sizeof(CURSORINFO)};
+ if (GetCursorInfo(&c))
+ return !(c.flags & CURSOR_SHOWING);
+ NOTREACHED();
+ return false;
+}
+
// Conversion scan_code and LParam each other.
// uint16_t scan_code:
// ui/events/keycodes/dom/keycode_converter_data.inc
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/platform_window/win/win_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698