| 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 // Sets the bounds of the HWND to |bounds_in_pixels|. If the HWND size is not |
| 134 // changed, |force_size_changed| determines if we should pretend it is. |
| 135 void SetBounds(const gfx::Rect& bounds_in_pixels, bool force_size_changed); |
| 136 |
| 134 void SetSize(const gfx::Size& size); | 137 void SetSize(const gfx::Size& size); |
| 135 void CenterWindow(const gfx::Size& size); | 138 void CenterWindow(const gfx::Size& size); |
| 136 | 139 |
| 137 void SetRegion(HRGN rgn); | 140 void SetRegion(HRGN rgn); |
| 138 | 141 |
| 139 void StackAbove(HWND other_hwnd); | 142 void StackAbove(HWND other_hwnd); |
| 140 void StackAtTop(); | 143 void StackAtTop(); |
| 141 | 144 |
| 142 void Show(); | 145 void Show(); |
| 143 void ShowWindowWithState(ui::WindowShowState show_state); | 146 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 | 604 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the |
| 602 // HandleMouseEventInternal function as to why this is needed. | 605 // HandleMouseEventInternal function as to why this is needed. |
| 603 long last_mouse_hwheel_time_; | 606 long last_mouse_hwheel_time_; |
| 604 | 607 |
| 605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 608 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 606 }; | 609 }; |
| 607 | 610 |
| 608 } // namespace views | 611 } // namespace views |
| 609 | 612 |
| 610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 613 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |