Chromium Code Reviews| 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 #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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |