Chromium Code Reviews| Index: ui/views/win/hwnd_message_handler.cc |
| =================================================================== |
| --- ui/views/win/hwnd_message_handler.cc (revision 250790) |
| +++ ui/views/win/hwnd_message_handler.cc (working copy) |
| @@ -1628,7 +1628,6 @@ |
| // be WM_RBUTTONUP instead of WM_NCRBUTTONUP. |
| SetCapture(); |
| } |
| - |
| MSG msg = { hwnd(), message, w_param, l_param, GetMessageTime(), |
| { CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } }; |
| ui::MouseEvent event(msg); |
| @@ -1638,7 +1637,8 @@ |
| if (!(event.flags() & ui::EF_IS_NON_CLIENT)) |
| delegate_->HandleTooltipMouseMove(message, w_param, l_param); |
| - if (event.type() == ui::ET_MOUSE_MOVED && !HasCapture()) { |
| + if (event.type() == ui::ET_MOUSE_MOVED && !HasCapture() && |
|
cpu_(ooo_6.6-7.5)
2014/02/13 22:35:18
can you put a short comment here about why we test
ananta
2014/02/13 22:47:35
Done.
ananta
2014/02/13 22:47:35
Done.
|
| + HIWORD(w_param) != SPECIAL_MOUSEMOVE_NOT_TO_BE_TRACKED) { |
| // Windows only fires WM_MOUSELEAVE events if the application begins |
| // "tracking" mouse events for a given HWND during WM_MOUSEMOVE events. |
| // We need to call |TrackMouseEvents| to listen for WM_MOUSELEAVE. |