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 #include "ui/base/win/hwnd_util.h" | 5 #include "ui/base/win/hwnd_util.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/win/metro.h" | 9 #include "base/win/metro.h" |
10 #include "ui/gfx/point.h" | 10 #include "ui/gfx/point.h" |
11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // Adjust the window to fit. | 18 // Adjust the window to fit. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 HMODULE metro = base::win::GetMetroModule(); | 204 HMODULE metro = base::win::GetMetroModule(); |
205 if (!metro) | 205 if (!metro) |
206 return get_real_hwnd ? ::GetDesktopWindow() : HWND_DESKTOP; | 206 return get_real_hwnd ? ::GetDesktopWindow() : HWND_DESKTOP; |
207 // In windows 8 metro-mode the root window is not the desktop. | 207 // In windows 8 metro-mode the root window is not the desktop. |
208 RootWindow root_window = | 208 RootWindow root_window = |
209 reinterpret_cast<RootWindow>(::GetProcAddress(metro, "GetRootWindow")); | 209 reinterpret_cast<RootWindow>(::GetProcAddress(metro, "GetRootWindow")); |
210 return root_window(); | 210 return root_window(); |
211 } | 211 } |
212 | 212 |
213 } // namespace ui | 213 } // namespace ui |
OLD | NEW |