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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 271863006: Fix gesture event handling in MenuButton (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git cl format Created 6 years, 7 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/views/views.gyp ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index bfa1710358d6c84fa2b065a702d3ce0b0c3a4185..24cd8fda66d53212e1cfbabe45a1a21ee0c17c0b 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -585,12 +585,12 @@ class VIEWS_EXPORT HWNDMessageHandler :
// class. Allows callers to retrieve the interface pointer.
scoped_ptr<ui::ViewProp> prop_window_target_;
- // Set to true if we are in the context of a touch down event. This is reset
- // to false in a delayed task. Defaults to false.
+ // Number of active touch down contexts. This is incremented on touch down
+ // events and decremented later using a delayed task.
// We need this to ignore WM_MOUSEACTIVATE messages generated in response to
// touch input. This is fine because activation still works correctly via
// native SetFocus calls invoked in the views code.
- bool touch_down_context_;
+ int touch_down_contexts_;
// Time the last touch message was received. Used to flag mouse messages
// synthesized by Windows for touch which are not flagged by the OS as
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698