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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

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 unified diff | Download patch
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // class. Allows callers to retrieve the interface pointer. 653 // class. Allows callers to retrieve the interface pointer.
654 std::unique_ptr<ui::ViewProp> prop_window_target_; 654 std::unique_ptr<ui::ViewProp> prop_window_target_;
655 655
656 // Number of active touch down contexts. This is incremented on touch down 656 // Number of active touch down contexts. This is incremented on touch down
657 // events and decremented later using a delayed task. 657 // events and decremented later using a delayed task.
658 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to 658 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to
659 // touch input. This is fine because activation still works correctly via 659 // touch input. This is fine because activation still works correctly via
660 // native SetFocus calls invoked in the views code. 660 // native SetFocus calls invoked in the views code.
661 int touch_down_contexts_; 661 int touch_down_contexts_;
662 662
663 // Time the last touch message was received. Used to flag mouse messages
664 // synthesized by Windows for touch which are not flagged by the OS as
665 // synthesized mouse messages. For more information please refer to
666 // the IsMouseEventFromTouch function.
667 static long last_touch_message_time_;
668
669 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the 663 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the
670 // HandleMouseEventInternal function as to why this is needed. 664 // HandleMouseEventInternal function as to why this is needed.
671 long last_mouse_hwheel_time_; 665 long last_mouse_hwheel_time_;
672 666
673 // On Windows Vista and beyond, if we are transitioning from custom frame 667 // On Windows Vista and beyond, if we are transitioning from custom frame
674 // to Aero(glass) we delay setting the DWM related properties in full 668 // to Aero(glass) we delay setting the DWM related properties in full
675 // screen mode as DWM is not supported in full screen windows. We perform 669 // screen mode as DWM is not supported in full screen windows. We perform
676 // the DWM related operations when the window comes out of fullscreen mode. 670 // the DWM related operations when the window comes out of fullscreen mode.
677 // This member variable is set to true if the window is transitioning to 671 // This member variable is set to true if the window is transitioning to
678 // glass. Defaults to false. 672 // glass. Defaults to false.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 724
731 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 725 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
732 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 726 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
733 727
734 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 728 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
735 }; 729 };
736 730
737 } // namespace views 731 } // namespace views
738 732
739 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 733 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698