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

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

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gesture recognizer tests Created 4 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
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 bool IsSynthesizedMouseMessage(unsigned int message, 490 bool IsSynthesizedMouseMessage(unsigned int message,
491 int message_time, 491 int message_time,
492 LPARAM l_param); 492 LPARAM l_param);
493 493
494 // Provides functionality to transition a frame to DWM. 494 // Provides functionality to transition a frame to DWM.
495 void PerformDwmTransition(); 495 void PerformDwmTransition();
496 496
497 // Generates a touch event and adds it to the |touch_events| parameter. 497 // Generates a touch event and adds it to the |touch_events| parameter.
498 // |point| is the point where the touch was initiated. 498 // |point| is the point where the touch was initiated.
499 // |id| is the event id associated with the touch event. 499 // |id| is the event id associated with the touch event.
500 // |event_time| is the current time used for latency calculation. 500 // |time_stamp| is the time stamp associated with the message.
501 // |time_stamp| is the time delta associated with the message.
502 void GenerateTouchEvent(ui::EventType event_type, 501 void GenerateTouchEvent(ui::EventType event_type,
503 const gfx::Point& point, 502 const gfx::Point& point,
504 unsigned int id, 503 unsigned int id,
505 base::TimeTicks event_time, 504 base::TimeTicks time_stamp,
506 base::TimeDelta time_stamp,
507 TouchEvents* touch_events); 505 TouchEvents* touch_events);
508 506
509 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption. 507 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption.
510 // Returns true if the message was handled. 508 // Returns true if the message was handled.
511 bool HandleMouseInputForCaption(unsigned int message, 509 bool HandleMouseInputForCaption(unsigned int message,
512 WPARAM w_param, 510 WPARAM w_param,
513 LPARAM l_param); 511 LPARAM l_param);
514 512
515 // Helper function for setting the bounds of the HWND. For more information 513 // Helper function for setting the bounds of the HWND. For more information
516 // please refer to the SetBounds() function. 514 // please refer to the SetBounds() function.
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 657
660 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 658 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
661 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 659 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
662 660
663 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 661 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
664 }; 662 };
665 663
666 } // namespace views 664 } // namespace views
667 665
668 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 666 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698