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 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 void Init(HWND parent, const gfx::Rect& bounds); | 117 void Init(HWND parent, const gfx::Rect& bounds); |
118 void InitModalType(ui::ModalType modal_type); | 118 void InitModalType(ui::ModalType modal_type); |
119 | 119 |
120 void Close(); | 120 void Close(); |
121 void CloseNow(); | 121 void CloseNow(); |
122 | 122 |
123 gfx::Rect GetWindowBoundsInScreen() const; | 123 gfx::Rect GetWindowBoundsInScreen() const; |
124 gfx::Rect GetClientAreaBoundsInScreen() const; | 124 gfx::Rect GetClientAreaBoundsInScreen() const; |
125 gfx::Rect GetRestoredBounds() const; | 125 gfx::Rect GetRestoredBounds() const; |
| 126 // This accounts for the case where the widget size is the client size. |
| 127 gfx::Rect GetClientAreaBounds() const; |
| 128 |
126 void GetWindowPlacement(gfx::Rect* bounds, | 129 void GetWindowPlacement(gfx::Rect* bounds, |
127 ui::WindowShowState* show_state) const; | 130 ui::WindowShowState* show_state) const; |
128 | 131 |
129 void SetBounds(const gfx::Rect& bounds_in_pixels); | 132 void SetBounds(const gfx::Rect& bounds_in_pixels); |
130 void SetSize(const gfx::Size& size); | 133 void SetSize(const gfx::Size& size); |
131 void CenterWindow(const gfx::Size& size); | 134 void CenterWindow(const gfx::Size& size); |
132 | 135 |
133 void SetRegion(HRGN rgn); | 136 void SetRegion(HRGN rgn); |
134 | 137 |
135 void StackAbove(HWND other_hwnd); | 138 void StackAbove(HWND other_hwnd); |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 }; | 549 }; |
547 | 550 |
548 // This window property if set on the window does not activate the window for a | 551 // This window property if set on the window does not activate the window for a |
549 // touch based WM_MOUSEACTIVATE message. | 552 // touch based WM_MOUSEACTIVATE message. |
550 const wchar_t kIgnoreTouchMouseActivateForWindow[] = | 553 const wchar_t kIgnoreTouchMouseActivateForWindow[] = |
551 L"Chrome.IgnoreMouseActivate"; | 554 L"Chrome.IgnoreMouseActivate"; |
552 | 555 |
553 } // namespace views | 556 } // namespace views |
554 | 557 |
555 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 558 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |