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

Unified Diff: ui/views/win/hwnd_message_handler.h

Issue 300163002: Update window region after widget resizes not changing HWND size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/win/hwnd_message_handler.h
diff --git a/ui/views/win/hwnd_message_handler.h b/ui/views/win/hwnd_message_handler.h
index 24cd8fda66d53212e1cfbabe45a1a21ee0c17c0b..0e8aeb727136ded9122b3bbb0fdb0cf04d5d724d 100644
--- a/ui/views/win/hwnd_message_handler.h
+++ b/ui/views/win/hwnd_message_handler.h
@@ -130,7 +130,10 @@ class VIEWS_EXPORT HWNDMessageHandler :
void GetWindowPlacement(gfx::Rect* bounds,
ui::WindowShowState* show_state) const;
- void SetBounds(const gfx::Rect& bounds_in_pixels);
+ // Sets the bounds of the HWND to |bounds_in_pixels|. If the HWND size is not
+ // changed, |force_size_changed| determines if we should pretend it is.
+ void SetBounds(const gfx::Rect& bounds_in_pixels, bool force_size_changed);
+
void SetSize(const gfx::Size& size);
void CenterWindow(const gfx::Size& size);
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698