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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/views.gyp ('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 <set> 10 #include <set>
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 // Indicates if the window needs the WS_VSCROLL and WS_HSCROLL styles. 578 // Indicates if the window needs the WS_VSCROLL and WS_HSCROLL styles.
579 bool needs_scroll_styles_; 579 bool needs_scroll_styles_;
580 580
581 // Set to true if we are in the context of a sizing operation. 581 // Set to true if we are in the context of a sizing operation.
582 bool in_size_loop_; 582 bool in_size_loop_;
583 583
584 // Stores a pointer to the WindowEventTarget interface implemented by this 584 // Stores a pointer to the WindowEventTarget interface implemented by this
585 // class. Allows callers to retrieve the interface pointer. 585 // class. Allows callers to retrieve the interface pointer.
586 scoped_ptr<ui::ViewProp> prop_window_target_; 586 scoped_ptr<ui::ViewProp> prop_window_target_;
587 587
588 // Set to true if we are in the context of a touch down event. This is reset 588 // Number of active touch down contexts. This is incremented on touch down
589 // to false in a delayed task. Defaults to false. 589 // events and decremented later using a delayed task.
590 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to 590 // We need this to ignore WM_MOUSEACTIVATE messages generated in response to
591 // touch input. This is fine because activation still works correctly via 591 // touch input. This is fine because activation still works correctly via
592 // native SetFocus calls invoked in the views code. 592 // native SetFocus calls invoked in the views code.
593 bool touch_down_context_; 593 int touch_down_contexts_;
594 594
595 // Time the last touch message was received. Used to flag mouse messages 595 // Time the last touch message was received. Used to flag mouse messages
596 // synthesized by Windows for touch which are not flagged by the OS as 596 // synthesized by Windows for touch which are not flagged by the OS as
597 // synthesized mouse messages. For more information please refer to 597 // synthesized mouse messages. For more information please refer to
598 // the IsMouseEventFromTouch function. 598 // the IsMouseEventFromTouch function.
599 static long last_touch_message_time_; 599 static long last_touch_message_time_;
600 600
601 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the 601 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the
602 // HandleMouseEventInternal function as to why this is needed. 602 // HandleMouseEventInternal function as to why this is needed.
603 long last_mouse_hwheel_time_; 603 long last_mouse_hwheel_time_;
604 604
605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
606 }; 606 };
607 607
608 } // namespace views 608 } // namespace views
609 609
610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« 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