| 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 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 case HTBOTTOMRIGHT: | 1934 case HTBOTTOMRIGHT: |
| 1935 cursor = IDC_SIZENWSE; | 1935 cursor = IDC_SIZENWSE; |
| 1936 break; | 1936 break; |
| 1937 case HTTOPRIGHT: | 1937 case HTTOPRIGHT: |
| 1938 case HTBOTTOMLEFT: | 1938 case HTBOTTOMLEFT: |
| 1939 cursor = IDC_SIZENESW; | 1939 cursor = IDC_SIZENESW; |
| 1940 break; | 1940 break; |
| 1941 case HTCLIENT: | 1941 case HTCLIENT: |
| 1942 SetCursor(current_cursor_); | 1942 SetCursor(current_cursor_); |
| 1943 return 1; | 1943 return 1; |
| 1944 case LOWORD(HTERROR): // Use HTERROR's LOWORD value for valid comparison. |
| 1945 SetMsgHandled(FALSE); |
| 1946 break; |
| 1944 default: | 1947 default: |
| 1945 // Use the default value, IDC_ARROW. | 1948 // Use the default value, IDC_ARROW. |
| 1946 break; | 1949 break; |
| 1947 } | 1950 } |
| 1948 ::SetCursor(LoadCursor(NULL, cursor)); | 1951 ::SetCursor(LoadCursor(NULL, cursor)); |
| 1949 return 1; | 1952 return 1; |
| 1950 } | 1953 } |
| 1951 | 1954 |
| 1952 void HWNDMessageHandler::OnSetFocus(HWND last_focused_window) { | 1955 void HWNDMessageHandler::OnSetFocus(HWND last_focused_window) { |
| 1953 delegate_->HandleNativeFocus(last_focused_window); | 1956 delegate_->HandleNativeFocus(last_focused_window); |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2410 POINT cursor_pos = {0}; | 2413 POINT cursor_pos = {0}; |
| 2411 ::GetCursorPos(&cursor_pos); | 2414 ::GetCursorPos(&cursor_pos); |
| 2412 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) | 2415 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) |
| 2413 return false; | 2416 return false; |
| 2414 return true; | 2417 return true; |
| 2415 } | 2418 } |
| 2416 return false; | 2419 return false; |
| 2417 } | 2420 } |
| 2418 | 2421 |
| 2419 } // namespace views | 2422 } // namespace views |
| OLD | NEW |