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

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

Issue 2904113002: Replacing WM_TOUCH with WM_POINTER for touch events on Wins 8+ (Closed)
Patch Set: wm touch Created 3 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 unified diff | Download patch
« no previous file with comments | « ui/events/event.h ('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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 // Helper to handle mouse events. 517 // Helper to handle mouse events.
518 // The |message|, |w_param|, |l_param| parameters identify the Windows mouse 518 // The |message|, |w_param|, |l_param| parameters identify the Windows mouse
519 // message and its parameters respectively. 519 // message and its parameters respectively.
520 // The |track_mouse| parameter indicates if we should track the mouse. 520 // The |track_mouse| parameter indicates if we should track the mouse.
521 LRESULT HandleMouseEventInternal(UINT message, 521 LRESULT HandleMouseEventInternal(UINT message,
522 WPARAM w_param, 522 WPARAM w_param,
523 LPARAM l_param, 523 LPARAM l_param,
524 bool track_mouse); 524 bool track_mouse);
525 525
526 LRESULT HandlePointerEventTypeTouch(UINT message,
527 WPARAM w_param,
528 LPARAM l_param);
529
530 LRESULT HandlePointerEventTypePen(UINT message,
531 WPARAM w_param,
532 LPARAM l_param);
533
526 // Returns true if the mouse message passed in is an OS synthesized mouse 534 // Returns true if the mouse message passed in is an OS synthesized mouse
527 // message. 535 // message.
528 // |message| identifies the mouse message. 536 // |message| identifies the mouse message.
529 // |message_time| is the time when the message occurred. 537 // |message_time| is the time when the message occurred.
530 // |l_param| indicates the location of the mouse message. 538 // |l_param| indicates the location of the mouse message.
531 bool IsSynthesizedMouseMessage(unsigned int message, 539 bool IsSynthesizedMouseMessage(unsigned int message,
532 int message_time, 540 int message_time,
533 LPARAM l_param); 541 LPARAM l_param);
534 542
535 // Provides functionality to transition a frame to DWM. 543 // Provides functionality to transition a frame to DWM.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 738
731 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 739 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
732 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 740 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
733 741
734 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 742 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
735 }; 743 };
736 744
737 } // namespace views 745 } // namespace views
738 746
739 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 747 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/events/event.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698