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

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

Issue 277053003: Do FinishAllRendering in WM_WINDOWPOSCHANGING (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
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 #include <wtsapi32.h> 10 #include <wtsapi32.h>
(...skipping 2206 matching lines...) Expand 10 before | Expand all | Expand 10 after
2217 FROM_HERE, 2217 FROM_HERE,
2218 base::Bind(&HWNDMessageHandler::StopIgnoringPosChanges, 2218 base::Bind(&HWNDMessageHandler::StopIgnoringPosChanges,
2219 weak_factory_.GetWeakPtr())); 2219 weak_factory_.GetWeakPtr()));
2220 } 2220 }
2221 last_monitor_ = monitor; 2221 last_monitor_ = monitor;
2222 last_monitor_rect_ = monitor_rect; 2222 last_monitor_rect_ = monitor_rect;
2223 last_work_area_ = work_area; 2223 last_work_area_ = work_area;
2224 } 2224 }
2225 } 2225 }
2226 2226
2227 if (DidClientAreaSizeChange(window_pos))
2228 delegate_->HandleWindowSizeChanging();
2229
2227 if (ScopedFullscreenVisibility::IsHiddenForFullscreen(hwnd())) { 2230 if (ScopedFullscreenVisibility::IsHiddenForFullscreen(hwnd())) {
2228 // Prevent the window from being made visible if we've been asked to do so. 2231 // Prevent the window from being made visible if we've been asked to do so.
2229 // See comment in header as to why we might want this. 2232 // See comment in header as to why we might want this.
2230 window_pos->flags &= ~SWP_SHOWWINDOW; 2233 window_pos->flags &= ~SWP_SHOWWINDOW;
2231 } 2234 }
2232 2235
2233 if (window_pos->flags & SWP_SHOWWINDOW) 2236 if (window_pos->flags & SWP_SHOWWINDOW)
2234 delegate_->HandleVisibilityChanging(true); 2237 delegate_->HandleVisibilityChanging(true);
2235 else if (window_pos->flags & SWP_HIDEWINDOW) 2238 else if (window_pos->flags & SWP_HIDEWINDOW)
2236 delegate_->HandleVisibilityChanging(false); 2239 delegate_->HandleVisibilityChanging(false);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 POINT cursor_pos = {0}; 2411 POINT cursor_pos = {0};
2409 ::GetCursorPos(&cursor_pos); 2412 ::GetCursorPos(&cursor_pos);
2410 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT))) 2413 if (memcmp(&cursor_pos, &mouse_location, sizeof(POINT)))
2411 return false; 2414 return false;
2412 return true; 2415 return true;
2413 } 2416 }
2414 return false; 2417 return false;
2415 } 2418 }
2416 2419
2417 } // namespace views 2420 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698