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

Side by Side 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: Pass size change status as an argument to SetBounds() Created 6 years, 6 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
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 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 gfx::Rect GetWindowBoundsInScreen() const; 124 gfx::Rect GetWindowBoundsInScreen() const;
125 gfx::Rect GetClientAreaBoundsInScreen() const; 125 gfx::Rect GetClientAreaBoundsInScreen() const;
126 gfx::Rect GetRestoredBounds() const; 126 gfx::Rect GetRestoredBounds() const;
127 // This accounts for the case where the widget size is the client size. 127 // This accounts for the case where the widget size is the client size.
128 gfx::Rect GetClientAreaBounds() const; 128 gfx::Rect GetClientAreaBounds() const;
129 129
130 void GetWindowPlacement(gfx::Rect* bounds, 130 void GetWindowPlacement(gfx::Rect* bounds,
131 ui::WindowShowState* show_state) const; 131 ui::WindowShowState* show_state) const;
132 132
133 void SetBounds(const gfx::Rect& bounds_in_pixels); 133 void SetBounds(const gfx::Rect& bounds_in_pixels, bool widget_size_changed);
sky 2014/05/27 19:27:39 Document what widget_size_changed means. Also, how
mohsen 2014/05/27 20:16:17 Done.
134 void SetSize(const gfx::Size& size); 134 void SetSize(const gfx::Size& size);
135 void CenterWindow(const gfx::Size& size); 135 void CenterWindow(const gfx::Size& size);
136 136
137 void SetRegion(HRGN rgn); 137 void SetRegion(HRGN rgn);
138 138
139 void StackAbove(HWND other_hwnd); 139 void StackAbove(HWND other_hwnd);
140 void StackAtTop(); 140 void StackAtTop();
141 141
142 void Show(); 142 void Show();
143 void ShowWindowWithState(ui::WindowShowState show_state); 143 void ShowWindowWithState(ui::WindowShowState show_state);
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the 601 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the
602 // HandleMouseEventInternal function as to why this is needed. 602 // HandleMouseEventInternal function as to why this is needed.
603 long last_mouse_hwheel_time_; 603 long last_mouse_hwheel_time_;
604 604
605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
606 }; 606 };
607 607
608 } // namespace views 608 } // namespace views
609 609
610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« 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