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_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 root window you can use to parent a window. Note that in some | |
| 51 // cases we create child windows not parented to its final container so in | |
| 52 // those very few cases you should pass true in |is_child_window|. | |
| 53 UI_EXPORT HWND GetRootWindow(bool is_child_window); | |
|
sky
2012/05/01 15:40:39
Is there another name we could use for this? RootW
cpu_(ooo_6.6-7.5)
2012/05/01 20:53:12
Yeah, I noticed. Does not seem to conflict because
| |
| 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 |