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

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: rebase Created 4 years, 6 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/views/widget/widget_unittest.cc ('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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 bool IsSynthesizedMouseMessage(unsigned int message, 492 bool IsSynthesizedMouseMessage(unsigned int message,
493 int message_time, 493 int message_time,
494 LPARAM l_param); 494 LPARAM l_param);
495 495
496 // Provides functionality to transition a frame to DWM. 496 // Provides functionality to transition a frame to DWM.
497 void PerformDwmTransition(); 497 void PerformDwmTransition();
498 498
499 // Generates a touch event and adds it to the |touch_events| parameter. 499 // Generates a touch event and adds it to the |touch_events| parameter.
500 // |point| is the point where the touch was initiated. 500 // |point| is the point where the touch was initiated.
501 // |id| is the event id associated with the touch event. 501 // |id| is the event id associated with the touch event.
502 // |event_time| is the current time used for latency calculation. 502 // |time_stamp| is the time stamp associated with the message.
503 // |time_stamp| is the time delta associated with the message.
504 void GenerateTouchEvent(ui::EventType event_type, 503 void GenerateTouchEvent(ui::EventType event_type,
505 const gfx::Point& point, 504 const gfx::Point& point,
506 unsigned int id, 505 unsigned int id,
507 base::TimeTicks event_time, 506 base::TimeTicks time_stamp,
508 base::TimeDelta time_stamp,
509 TouchEvents* touch_events); 507 TouchEvents* touch_events);
510 508
511 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption. 509 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption.
512 // Returns true if the message was handled. 510 // Returns true if the message was handled.
513 bool HandleMouseInputForCaption(unsigned int message, 511 bool HandleMouseInputForCaption(unsigned int message,
514 WPARAM w_param, 512 WPARAM w_param,
515 LPARAM l_param); 513 LPARAM l_param);
516 514
517 // Helper function for setting the bounds of the HWND. For more information 515 // Helper function for setting the bounds of the HWND. For more information
518 // please refer to the SetBounds() function. 516 // please refer to the SetBounds() function.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 675
678 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 676 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
679 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 677 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
680 678
681 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 679 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
682 }; 680 };
683 681
684 } // namespace views 682 } // namespace views
685 683
686 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 684 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget_unittest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698