summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/widget/native_widget_win.cc7
-rw-r--r--ui/views/widget/native_widget_win.h3
2 files changed, 6 insertions, 4 deletions
diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
index 250ae2f..bc89810 100644
--- a/ui/views/widget/native_widget_win.cc
+++ b/ui/views/widget/native_widget_win.cc
@@ -613,13 +613,14 @@ bool NativeWidgetWin::ProcessMouseRange(UINT message, WPARAM w_param,
}
void NativeWidgetWin::MakeMSG(MSG* msg, UINT message, WPARAM w_param,
- LPARAM l_param) const {
+ LPARAM l_param, DWORD time, LONG x, LONG y) const {
msg->hwnd = hwnd();
msg->message = message;
msg->wParam = w_param;
msg->lParam = l_param;
- msg->time = 0;
- msg->pt.x = msg->pt.y = 0;
+ msg->time = time;
+ msg->pt.x = x;
+ msg->pt.y = y;
}
void NativeWidgetWin::CloseNow() {
diff --git a/ui/views/widget/native_widget_win.h b/ui/views/widget/native_widget_win.h
index f5c8eec..c3e724e 100644
--- a/ui/views/widget/native_widget_win.h
+++ b/ui/views/widget/native_widget_win.h
@@ -238,7 +238,8 @@ class NativeWidgetWin : public NativeWidget,
void ProcessMouseExited();
// Fills out a MSG struct with the supplied values.
- void MakeMSG(MSG* msg, UINT message, WPARAM w_param, LPARAM l_param) const;
+ void MakeMSG(MSG* msg, UINT message, WPARAM w_param, LPARAM l_param,
+ DWORD time = 0, LONG x = 0, LONG y = 0) const;
void CloseNow();