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_FOREGROUND_HELPER_H_ | 5 #ifndef UI_BASE_WIN_FOREGROUND_HELPER_H_ |
6 #define UI_BASE_WIN_FOREGROUND_HELPER_H_ | 6 #define UI_BASE_WIN_FOREGROUND_HELPER_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "ui/base/ui_export.h" |
9 #include "ui/gfx/win/window_impl.h" | 10 #include "ui/gfx/win/window_impl.h" |
10 | 11 |
11 namespace ui { | 12 namespace ui { |
12 | 13 |
13 // Helper class for moving a window to the foreground. | 14 // Helper class for moving a window to the foreground. |
14 // Windows XP and later will not allow a window which is in the background to | 15 // Windows XP and later will not allow a window which is in the background to |
15 // move to the foreground, unless requested by the current window in the | 16 // move to the foreground, unless requested by the current window in the |
16 // foreground. For automated testing, we really want some of our windows | 17 // foreground. For automated testing, we really want some of our windows |
17 // to be capable of moving to the foreground. | 18 // to be capable of moving to the foreground. |
18 // | 19 // |
(...skipping 18 matching lines...) Expand all Loading... |
37 LRESULT OnHotKey(UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 38 LRESULT OnHotKey(UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
38 | 39 |
39 HWND window_; | 40 HWND window_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(ForegroundHelper); | 42 DISALLOW_COPY_AND_ASSIGN(ForegroundHelper); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace ui | 45 } // namespace ui |
45 | 46 |
46 #endif // UI_BASE_WIN_FOREGROUND_HELPER_H_ | 47 #endif // UI_BASE_WIN_FOREGROUND_HELPER_H_ |
OLD | NEW |