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_BASE_WIN_HWND_UTIL_H_ | 5 #ifndef UI_BASE_WIN_HWND_UTIL_H_ |
6 #define UI_BASE_WIN_HWND_UTIL_H_ | 6 #define UI_BASE_WIN_HWND_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 const gfx::Size& pref); | 40 const gfx::Size& pref); |
41 | 41 |
42 // If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling | 42 // If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling |
43 // CreateWindow. | 43 // CreateWindow. |
44 UI_EXPORT void CheckWindowCreated(HWND hwnd); | 44 UI_EXPORT void CheckWindowCreated(HWND hwnd); |
45 | 45 |
46 // Shows the system menu for |window| and sends the selected command (if the | 46 // Shows the system menu for |window| and sends the selected command (if the |
47 // user selected something. | 47 // user selected something. |
48 UI_EXPORT void ShowSystemMenu(HWND window, int screen_x, int screen_y); | 48 UI_EXPORT void ShowSystemMenu(HWND window, int screen_x, int screen_y); |
49 | 49 |
| 50 // Returns the window you can use to parent a top level window. |
| 51 // Note that in some cases we create child windows not parented to its final |
| 52 // container so in those cases you should pass true in |get_real_hwnd|. |
| 53 UI_EXPORT HWND GetWindowToParentTo(bool get_real_hwnd); |
| 54 |
50 } // namespace ui | 55 } // namespace ui |
51 | 56 |
52 #endif // UI_BASE_WIN_HWND_UTIL_H_ | 57 #endif // UI_BASE_WIN_HWND_UTIL_H_ |
OLD | NEW |