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/widget_win.h" | 5 #include "chrome/views/widget_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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 LRESULT WidgetWin::OnMouseActivate(HWND window, UINT hittest_code, | 559 LRESULT WidgetWin::OnMouseActivate(HWND window, UINT hittest_code, |
560 UINT message) { | 560 UINT message) { |
561 SetMsgHandled(FALSE); | 561 SetMsgHandled(FALSE); |
562 return MA_ACTIVATE; | 562 return MA_ACTIVATE; |
563 } | 563 } |
564 | 564 |
565 void WidgetWin::OnMouseMove(UINT flags, const CPoint& point) { | 565 void WidgetWin::OnMouseMove(UINT flags, const CPoint& point) { |
566 ProcessMouseMoved(point, flags, false); | 566 ProcessMouseMoved(point, flags, false); |
567 } | 567 } |
568 | 568 |
569 LRESULT WidgetWin::OnMouseLeave(UINT uMsg, WPARAM w_param, LPARAM l_param) { | 569 LRESULT WidgetWin::OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param) { |
570 tooltip_manager_->OnMouseLeave(); | 570 tooltip_manager_->OnMouseLeave(); |
571 ProcessMouseExited(); | 571 ProcessMouseExited(); |
572 return 0; | 572 return 0; |
573 } | 573 } |
574 | 574 |
575 LRESULT WidgetWin::OnMouseWheel(UINT flags, short distance, | 575 LRESULT WidgetWin::OnMouseWheel(UINT flags, short distance, |
576 const CPoint& point) { | 576 const CPoint& point) { |
577 MouseWheelEvent e(distance, | 577 MouseWheelEvent e(distance, |
578 point.x, | 578 point.x, |
579 point.y, | 579 point.y, |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 if (message == WM_NCDESTROY) { | 960 if (message == WM_NCDESTROY) { |
961 TRACK_HWND_DESTRUCTION(window); | 961 TRACK_HWND_DESTRUCTION(window); |
962 widget->hwnd_ = NULL; | 962 widget->hwnd_ = NULL; |
963 widget->OnFinalMessage(window); | 963 widget->OnFinalMessage(window); |
964 } | 964 } |
965 return result; | 965 return result; |
966 } | 966 } |
967 | 967 |
968 } // namespace views | 968 } // namespace views |
969 | 969 |
OLD | NEW |