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

Unified Diff: views/widget/widget_win.h

Issue 155343: Attempt at once-and-for-all fix for bug #2993 (Windows) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | views/widget/widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_win.h
===================================================================
--- views/widget/widget_win.h (revision 20614)
+++ views/widget/widget_win.h (working copy)
@@ -504,6 +504,9 @@
void ProcessMouseMoved(const CPoint& point, UINT flags, bool is_nonclient);
void ProcessMouseExited();
+ // Check for out-of-order mouse button releases
+ void CheckOutOfOrderMouseButtonRelease(int code);
+
// Handles re-laying out content in response to a window size change.
virtual void ChangeSize(UINT size_param, const CSize& size);
@@ -638,6 +641,18 @@
int last_mouse_move_x_;
int last_mouse_move_y_;
+ // Store whether the left and right mouse buttons are swapped in the Windows
+ // settings, and which virtual key code (VK_...) belongs to which button.
+ bool mouse_buttons_are_swapped_;
+ int left_button_code_;
+ int right_button_code_;
+
+ // keep track which buttons are currently pressed
+ int buttons_pressed_;
+
+ // Did we process a release button event out of order? (see ProcessMouseMoved)
+ int released_buttons_out_of_order_;
+
// Instance of accessibility information and handling for MSAA root
CComPtr<IAccessible> accessibility_root_;
« no previous file with comments | « no previous file | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698