| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 26 matching lines...) Expand all Loading... |
| 37 // window fits on screen. | 37 // window fits on screen. |
| 38 void CenterAndSizeWindow(HWND parent, | 38 void CenterAndSizeWindow(HWND parent, |
| 39 HWND window, | 39 HWND window, |
| 40 const gfx::Size& pref, | 40 const gfx::Size& pref, |
| 41 bool pref_is_client); | 41 bool pref_is_client); |
| 42 | 42 |
| 43 // If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling | 43 // If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling |
| 44 // CreateWindow. | 44 // CreateWindow. |
| 45 void CheckWindowCreated(HWND hwnd); | 45 void CheckWindowCreated(HWND hwnd); |
| 46 | 46 |
| 47 // Shows the system menu for |window| and sends the selected command (if the |
| 48 // user selected something. |
| 49 void ShowSystemMenu(HWND window, int screen_x, int screen_y); |
| 50 |
| 47 } // namespace ui | 51 } // namespace ui |
| 48 | 52 |
| 49 #endif // UI_BASE_WIN_HWND_UTIL_H_ | 53 #endif // UI_BASE_WIN_HWND_UTIL_H_ |
| OLD | NEW |