| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 void Close(); | 130 void Close(); |
| 131 void CloseNow(); | 131 void CloseNow(); |
| 132 | 132 |
| 133 gfx::Rect GetWindowBoundsInScreen() const; | 133 gfx::Rect GetWindowBoundsInScreen() const; |
| 134 gfx::Rect GetClientAreaBoundsInScreen() const; | 134 gfx::Rect GetClientAreaBoundsInScreen() const; |
| 135 gfx::Rect GetRestoredBounds() const; | 135 gfx::Rect GetRestoredBounds() const; |
| 136 // This accounts for the case where the widget size is the client size. | 136 // This accounts for the case where the widget size is the client size. |
| 137 gfx::Rect GetClientAreaBounds() const; | 137 gfx::Rect GetClientAreaBounds() const; |
| 138 | 138 |
| 139 // Returns the owned child windows. I.e. those that report GW_OWNER as |this|. |
| 140 std::vector<HWND> GetOwnedWindows() const; |
| 141 |
| 139 void GetWindowPlacement(gfx::Rect* bounds, | 142 void GetWindowPlacement(gfx::Rect* bounds, |
| 140 ui::WindowShowState* show_state) const; | 143 ui::WindowShowState* show_state) const; |
| 141 | 144 |
| 142 // Sets the bounds of the HWND to |bounds_in_pixels|. If the HWND size is not | 145 // Sets the bounds of the HWND to |bounds_in_pixels|. If the HWND size is not |
| 143 // changed, |force_size_changed| determines if we should pretend it is. | 146 // changed, |force_size_changed| determines if we should pretend it is. |
| 144 void SetBounds(const gfx::Rect& bounds_in_pixels, bool force_size_changed); | 147 void SetBounds(const gfx::Rect& bounds_in_pixels, bool force_size_changed); |
| 145 | 148 |
| 146 void SetSize(const gfx::Size& size); | 149 void SetSize(const gfx::Size& size); |
| 147 void CenterWindow(const gfx::Size& size); | 150 void CenterWindow(const gfx::Size& size); |
| 148 | 151 |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 | 714 |
| 712 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 715 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
| 713 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 716 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
| 714 | 717 |
| 715 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 718 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
| 716 }; | 719 }; |
| 717 | 720 |
| 718 } // namespace views | 721 } // namespace views |
| 719 | 722 |
| 720 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 723 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
| OLD | NEW |