OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/platform_window/win/win_window.h" | 5 #include "ui/platform_window/win/win_window.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/event_utils.h" | 8 #include "ui/events/event_utils.h" |
9 #include "ui/gfx/win/msg_util.h" | 9 #include "ui/gfx/win/msg_util.h" |
10 #include "ui/platform_window/platform_window_delegate.h" | 10 #include "ui/platform_window/types/platform_window_delegate.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 bool use_popup_as_root_window_for_test = false; | 16 bool use_popup_as_root_window_for_test = false; |
17 | 17 |
18 gfx::Rect GetWindowBoundsForClientBounds(DWORD style, DWORD ex_style, | 18 gfx::Rect GetWindowBoundsForClientBounds(DWORD style, DWORD ex_style, |
19 const gfx::Rect& bounds) { | 19 const gfx::Rect& bounds) { |
20 RECT wr; | 20 RECT wr; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 namespace test { | 170 namespace test { |
171 | 171 |
172 // static | 172 // static |
173 void SetUsePopupAsRootWindowForTest(bool use) { | 173 void SetUsePopupAsRootWindowForTest(bool use) { |
174 use_popup_as_root_window_for_test = use; | 174 use_popup_as_root_window_for_test = use; |
175 } | 175 } |
176 | 176 |
177 } // namespace test | 177 } // namespace test |
178 } // namespace ui | 178 } // namespace ui |
OLD | NEW |