Chromium Code Reviews| Index: content/child/npapi/webplugin_delegate_impl_win.cc |
| diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc |
| index 40f2251a28cb94cd40e1916a7486436d8b02a213..4f51cb96d91d321006d750c312c67b2325ce9801 100644 |
| --- a/content/child/npapi/webplugin_delegate_impl_win.cc |
| +++ b/content/child/npapi/webplugin_delegate_impl_win.cc |
| @@ -1029,7 +1029,7 @@ void WebPluginDelegateImpl::WindowlessUpdateGeometry( |
| NPEvent pos_changed_event; |
| pos_changed_event.event = WM_WINDOWPOSCHANGED; |
| pos_changed_event.wParam = 0; |
| - pos_changed_event.lParam = PtrToUlong(&win_pos); |
| + pos_changed_event.lParam = reinterpret_cast<uintptr_t>(&win_pos); |
| instance()->NPP_HandleEvent(&pos_changed_event); |
| } |
| @@ -1053,7 +1053,7 @@ void WebPluginDelegateImpl::WindowlessPaint(HDC hdc, |
| paint_event.event = WM_PAINT; |
| // NOTE: NPAPI is not 64bit safe. It puts pointers into 32bit values. |
|
Will Harris
2014/09/12 22:22:25
this comment is now incorrect since both wParam an
|
| paint_event.wParam = PtrToUlong(hdc); |
| - paint_event.lParam = PtrToUlong(&damage_rect_win); |
| + paint_event.lParam = reinterpret_cast<uintptr_t>(&damage_rect_win); |
| base::StatsRate plugin_paint("Plugin.Paint"); |
| base::StatsScope<base::StatsRate> scope(plugin_paint); |
| instance()->NPP_HandleEvent(&paint_event); |