Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ui/views/win/hwnd_message_handler.cc

Issue 1528253002: Force a WM_NCCALCSIZE to occur when we receive a WM_DISPLAYCHANGE notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698