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/wm/core/shadow_controller.h" | 5 #include "ui/wm/core/shadow_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
13 #include "ui/aura/client/window_tree_client.h" | 13 #include "ui/aura/client/window_parenting_client.h" |
14 #include "ui/aura/test/aura_test_base.h" | 14 #include "ui/aura/test/aura_test_base.h" |
15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
16 #include "ui/aura/window_event_dispatcher.h" | 16 #include "ui/aura/window_event_dispatcher.h" |
17 #include "ui/compositor/layer.h" | 17 #include "ui/compositor/layer.h" |
18 #include "ui/wm/core/default_activation_client.h" | 18 #include "ui/wm/core/default_activation_client.h" |
19 #include "ui/wm/core/shadow.h" | 19 #include "ui/wm/core/shadow.h" |
20 #include "ui/wm/core/shadow_types.h" | 20 #include "ui/wm/core/shadow_types.h" |
21 #include "ui/wm/core/window_util.h" | 21 #include "ui/wm/core/window_util.h" |
22 #include "ui/wm/core/wm_state.h" | 22 #include "ui/wm/core/wm_state.h" |
23 #include "ui/wm/public/activation_client.h" | 23 #include "ui/wm/public/activation_client.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 AddTransientChild(window1.get(), window2.get()); | 223 AddTransientChild(window1.get(), window2.get()); |
224 aura::client::SetHideOnDeactivate(window2.get(), true); | 224 aura::client::SetHideOnDeactivate(window2.get(), true); |
225 window2->Show(); | 225 window2->Show(); |
226 ActivateWindow(window2.get()); | 226 ActivateWindow(window2.get()); |
227 | 227 |
228 // window1 is now inactive, but its shadow should still appear active. | 228 // window1 is now inactive, but its shadow should still appear active. |
229 EXPECT_EQ(Shadow::STYLE_ACTIVE, shadow1->style()); | 229 EXPECT_EQ(Shadow::STYLE_ACTIVE, shadow1->style()); |
230 } | 230 } |
231 | 231 |
232 } // namespace wm | 232 } // namespace wm |
OLD | NEW |