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/aura/root_window_host_win.h" | 5 #include "ui/aura/root_window_host_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 using std::min; | 22 using std::min; |
23 | 23 |
24 namespace aura { | 24 namespace aura { |
25 namespace { | 25 namespace { |
26 | 26 |
27 bool use_popup_as_root_window_for_test = false; | 27 bool use_popup_as_root_window_for_test = false; |
28 | 28 |
29 } // namespace | 29 } // namespace |
30 | 30 |
31 // static | 31 // static |
32 RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds) { | 32 RootWindowHost* RootWindowHost::Create(const gfx::Rect& bounds, |
| 33 bool is_internal_display) { |
33 return new RootWindowHostWin(bounds); | 34 return new RootWindowHostWin(bounds); |
34 } | 35 } |
35 | 36 |
36 // static | 37 // static |
37 gfx::Size RootWindowHost::GetNativeScreenSize() { | 38 gfx::Size RootWindowHost::GetNativeScreenSize() { |
38 return gfx::Size(GetSystemMetrics(SM_CXSCREEN), | 39 return gfx::Size(GetSystemMetrics(SM_CXSCREEN), |
39 GetSystemMetrics(SM_CYSCREEN)); | 40 GetSystemMetrics(SM_CYSCREEN)); |
40 } | 41 } |
41 | 42 |
42 RootWindowHostWin::RootWindowHostWin(const gfx::Rect& bounds) | 43 RootWindowHostWin::RootWindowHostWin(const gfx::Rect& bounds) |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 namespace test { | 312 namespace test { |
312 | 313 |
313 // static | 314 // static |
314 void SetUsePopupAsRootWindowForTest(bool use) { | 315 void SetUsePopupAsRootWindowForTest(bool use) { |
315 use_popup_as_root_window_for_test = use; | 316 use_popup_as_root_window_for_test = use; |
316 } | 317 } |
317 | 318 |
318 } // namespace test | 319 } // namespace test |
319 | 320 |
320 } // namespace aura | 321 } // namespace aura |
OLD | NEW |