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

Unified Diff: ui/platform_window/win/win_window.cc

Issue 1083833002: win: fix narrowing warning on vs2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/win/win_window.cc
diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc
index 9bc8892e5018bb9961ebe2c6636e3f408f1fca99..debf105c11a7d4cf73a378adefc2eac2c958e238 100644
--- a/ui/platform_window/win/win_window.cc
+++ b/ui/platform_window/win/win_window.cc
@@ -115,7 +115,8 @@ LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) {
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION("440919 WinWindow::OnMouseRange"));
- MSG msg = { hwnd(), message, w_param, l_param, GetMessageTime(),
+ MSG msg = { hwnd(), message, w_param, l_param,
+ static_cast<DWORD>(GetMessageTime()),
sky 2015/04/13 22:51:50 Wow, weird that GetMessageTime() isn't typed to DW
{ CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } };
MouseEvent event(msg);
if (IsMouseEventFromTouch(message))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698