| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/win/hwnd_message_handler.h" | 5 #include "ui/views/win/hwnd_message_handler.h" |
| 6 | 6 |
| 7 #include <dwmapi.h> | 7 #include <dwmapi.h> |
| 8 #include <oleacc.h> | 8 #include <oleacc.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #include <wtsapi32.h> | 10 #include <wtsapi32.h> |
| (...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 LRESULT HWNDMessageHandler::HandleNcHitTestMessage(unsigned int message, | 974 LRESULT HWNDMessageHandler::HandleNcHitTestMessage(unsigned int message, |
| 975 WPARAM w_param, | 975 WPARAM w_param, |
| 976 LPARAM l_param, | 976 LPARAM l_param, |
| 977 bool* handled) { | 977 bool* handled) { |
| 978 LRESULT ret = OnNCHitTest( | 978 LRESULT ret = OnNCHitTest( |
| 979 gfx::Point(CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param))); | 979 gfx::Point(CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param))); |
| 980 *handled = IsMsgHandled(); | 980 *handled = IsMsgHandled(); |
| 981 return ret; | 981 return ret; |
| 982 } | 982 } |
| 983 | 983 |
| 984 LRESULT HWNDMessageHandler::HandleSysCommand(unsigned int message, | |
| 985 WPARAM w_param, | |
| 986 LPARAM l_param, | |
| 987 bool* handled) { | |
| 988 OnSysCommand(static_cast<UINT>(w_param), | |
| 989 gfx::Point(CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param))); | |
| 990 *handled = IsMsgHandled(); | |
| 991 return 0; | |
| 992 } | |
| 993 | |
| 994 //////////////////////////////////////////////////////////////////////////////// | 984 //////////////////////////////////////////////////////////////////////////////// |
| 995 // HWNDMessageHandler, private: | 985 // HWNDMessageHandler, private: |
| 996 | 986 |
| 997 int HWNDMessageHandler::GetAppbarAutohideEdges(HMONITOR monitor) { | 987 int HWNDMessageHandler::GetAppbarAutohideEdges(HMONITOR monitor) { |
| 998 autohide_factory_.InvalidateWeakPtrs(); | 988 autohide_factory_.InvalidateWeakPtrs(); |
| 999 return ViewsDelegate::views_delegate ? | 989 return ViewsDelegate::views_delegate ? |
| 1000 ViewsDelegate::views_delegate->GetAppbarAutohideEdges( | 990 ViewsDelegate::views_delegate->GetAppbarAutohideEdges( |
| 1001 monitor, | 991 monitor, |
| 1002 base::Bind(&HWNDMessageHandler::OnAppbarAutohideEdgesChanged, | 992 base::Bind(&HWNDMessageHandler::OnAppbarAutohideEdgesChanged, |
| 1003 autohide_factory_.GetWeakPtr())) : | 993 autohide_factory_.GetWeakPtr())) : |
| (...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2447 POINT cursor_pos = {0}; | 2437 POINT cursor_pos = {0}; |
| 2448 ::GetCursorPos(&cursor_pos); | 2438 ::GetCursorPos(&cursor_pos); |
| 2449 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) | 2439 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) |
| 2450 return false; | 2440 return false; |
| 2451 return true; | 2441 return true; |
| 2452 } | 2442 } |
| 2453 return false; | 2443 return false; |
| 2454 } | 2444 } |
| 2455 | 2445 |
| 2456 } // namespace views | 2446 } // namespace views |
| OLD | NEW |