| 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 <tchar.h> | 10 #include <tchar.h> |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 if (!processed) { | 890 if (!processed) { |
| 891 result = DefWindowProc(window, message, w_param, l_param); | 891 result = DefWindowProc(window, message, w_param, l_param); |
| 892 // DefWindowProc() may have destroyed the window and/or us in a nested | 892 // DefWindowProc() may have destroyed the window and/or us in a nested |
| 893 // message loop. | 893 // message loop. |
| 894 if (!ref || !::IsWindow(window)) | 894 if (!ref || !::IsWindow(window)) |
| 895 return result; | 895 return result; |
| 896 } | 896 } |
| 897 | 897 |
| 898 if (delegate_) { | 898 if (delegate_) { |
| 899 delegate_->PostHandleMSG(message, w_param, l_param); | 899 delegate_->PostHandleMSG(message, w_param, l_param); |
| 900 if (message == WM_NCDESTROY) | 900 if (message == WM_NCDESTROY) { |
| 901 RestoreEnabledIfNecessary(); |
| 901 delegate_->HandleDestroyed(); | 902 delegate_->HandleDestroyed(); |
| 903 } |
| 902 } | 904 } |
| 903 | 905 |
| 904 if (message == WM_ACTIVATE && IsTopLevelWindow(window)) | 906 if (message == WM_ACTIVATE && IsTopLevelWindow(window)) |
| 905 PostProcessActivateMessage(LOWORD(w_param), !!HIWORD(w_param), | 907 PostProcessActivateMessage(LOWORD(w_param), !!HIWORD(w_param), |
| 906 reinterpret_cast<HWND>(l_param)); | 908 reinterpret_cast<HWND>(l_param)); |
| 907 return result; | 909 return result; |
| 908 } | 910 } |
| 909 | 911 |
| 910 LRESULT HWNDMessageHandler::HandleMouseMessage(unsigned int message, | 912 LRESULT HWNDMessageHandler::HandleMouseMessage(unsigned int message, |
| 911 WPARAM w_param, | 913 WPARAM w_param, |
| (...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 delegate_->HandleClientSizeChanged(GetClientAreaBounds().size()); | 2648 delegate_->HandleClientSizeChanged(GetClientAreaBounds().size()); |
| 2647 ResetWindowRegion(false, true); | 2649 ResetWindowRegion(false, true); |
| 2648 } | 2650 } |
| 2649 | 2651 |
| 2650 if (direct_manipulation_helper_) | 2652 if (direct_manipulation_helper_) |
| 2651 direct_manipulation_helper_->SetBounds(bounds_in_pixels); | 2653 direct_manipulation_helper_->SetBounds(bounds_in_pixels); |
| 2652 } | 2654 } |
| 2653 | 2655 |
| 2654 | 2656 |
| 2655 } // namespace views | 2657 } // namespace views |
| OLD | NEW |