| 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 | 10 |
| (...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 } | 1307 } |
| 1308 | 1308 |
| 1309 void HWNDMessageHandler::OnDestroy() { | 1309 void HWNDMessageHandler::OnDestroy() { |
| 1310 windows_session_change_observer_.reset(nullptr); | 1310 windows_session_change_observer_.reset(nullptr); |
| 1311 delegate_->HandleDestroying(); | 1311 delegate_->HandleDestroying(); |
| 1312 } | 1312 } |
| 1313 | 1313 |
| 1314 void HWNDMessageHandler::OnDisplayChange(UINT bits_per_pixel, | 1314 void HWNDMessageHandler::OnDisplayChange(UINT bits_per_pixel, |
| 1315 const gfx::Size& screen_size) { | 1315 const gfx::Size& screen_size) { |
| 1316 delegate_->HandleDisplayChange(); | 1316 delegate_->HandleDisplayChange(); |
| 1317 SendFrameChanged(); |
| 1317 } | 1318 } |
| 1318 | 1319 |
| 1319 LRESULT HWNDMessageHandler::OnDwmCompositionChanged(UINT msg, | 1320 LRESULT HWNDMessageHandler::OnDwmCompositionChanged(UINT msg, |
| 1320 WPARAM w_param, | 1321 WPARAM w_param, |
| 1321 LPARAM l_param) { | 1322 LPARAM l_param) { |
| 1322 if (!delegate_->IsWidgetWindow()) { | 1323 if (!delegate_->IsWidgetWindow()) { |
| 1323 SetMsgHandled(FALSE); | 1324 SetMsgHandled(FALSE); |
| 1324 return 0; | 1325 return 0; |
| 1325 } | 1326 } |
| 1326 | 1327 |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 | 2551 |
| 2551 default: | 2552 default: |
| 2552 left_button_down_on_caption_ = false; | 2553 left_button_down_on_caption_ = false; |
| 2553 break; | 2554 break; |
| 2554 } | 2555 } |
| 2555 return handled; | 2556 return handled; |
| 2556 } | 2557 } |
| 2557 | 2558 |
| 2558 | 2559 |
| 2559 } // namespace views | 2560 } // namespace views |
| OLD | NEW |