| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/views/container_win.h" | 5 #include "chrome/views/container_win.h" |
| 6 | 6 |
| 7 #include "base/gfx/native_theme.h" | 7 #include "base/gfx/native_theme.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/win_util.h" | 9 #include "base/win_util.h" |
| 10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 UINT message) { | 525 UINT message) { |
| 526 SetMsgHandled(FALSE); | 526 SetMsgHandled(FALSE); |
| 527 return MA_ACTIVATE; | 527 return MA_ACTIVATE; |
| 528 } | 528 } |
| 529 | 529 |
| 530 void ContainerWin::OnMouseMove(UINT flags, const CPoint& point) { | 530 void ContainerWin::OnMouseMove(UINT flags, const CPoint& point) { |
| 531 ProcessMouseMoved(point, flags, false); | 531 ProcessMouseMoved(point, flags, false); |
| 532 } | 532 } |
| 533 | 533 |
| 534 LRESULT ContainerWin::OnMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param) { | 534 LRESULT ContainerWin::OnMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param) { |
| 535 tooltip_manager_->OnMouseLeave(); |
| 535 ProcessMouseExited(); | 536 ProcessMouseExited(); |
| 536 return 0; | 537 return 0; |
| 537 } | 538 } |
| 538 | 539 |
| 539 LRESULT ContainerWin::OnMouseWheel(UINT flags, short distance, | 540 LRESULT ContainerWin::OnMouseWheel(UINT flags, short distance, |
| 540 const CPoint& point) { | 541 const CPoint& point) { |
| 541 MouseWheelEvent e(distance, | 542 MouseWheelEvent e(distance, |
| 542 point.x, | 543 point.x, |
| 543 point.y, | 544 point.y, |
| 544 Event::ConvertWindowsFlags(flags)); | 545 Event::ConvertWindowsFlags(flags)); |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 result = DefWindowProc(window, message, w_param, l_param); | 919 result = DefWindowProc(window, message, w_param, l_param); |
| 919 if (message == WM_NCDESTROY) { | 920 if (message == WM_NCDESTROY) { |
| 920 vc->hwnd_ = NULL; | 921 vc->hwnd_ = NULL; |
| 921 vc->OnFinalMessage(window); | 922 vc->OnFinalMessage(window); |
| 922 } | 923 } |
| 923 return result; | 924 return result; |
| 924 } | 925 } |
| 925 | 926 |
| 926 } // namespace views | 927 } // namespace views |
| 927 | 928 |
| OLD | NEW |