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/window_modality_controller.h" | 5 #include "ui/wm/core/window_modality_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
11 #include "ui/aura/test/event_generator.h" | 11 #include "ui/aura/test/event_generator.h" |
12 #include "ui/aura/test/test_window_delegate.h" | 12 #include "ui/aura/test/test_window_delegate.h" |
13 #include "ui/aura/test/test_windows.h" | 13 #include "ui/aura/test/test_windows.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/aura/window_event_dispatcher.h" | 15 #include "ui/aura/window_event_dispatcher.h" |
16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
17 #include "ui/views/test/capture_tracking_view.h" | 17 #include "ui/views/test/capture_tracking_view.h" |
18 #include "ui/views/test/child_modal_window.h" | 18 #include "ui/views/test/child_modal_window.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 #include "ui/wm/core/window_util.h" | 20 #include "ui/wm/core/window_util.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace internal { | |
24 | 23 |
25 typedef test::AshTestBase WindowModalityControllerTest; | 24 typedef test::AshTestBase WindowModalityControllerTest; |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 bool ValidateStacking(aura::Window* parent, int ids[], int count) { | 28 bool ValidateStacking(aura::Window* parent, int ids[], int count) { |
30 for (int i = 0; i < count; ++i) { | 29 for (int i = 0; i < count; ++i) { |
31 if (parent->children().at(i)->id() != ids[i]) | 30 if (parent->children().at(i)->id() != ids[i]) |
32 return false; | 31 return false; |
33 } | 32 } |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 wm::ActivateWindow(w2.get()); | 552 wm::ActivateWindow(w2.get()); |
554 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); | 553 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); |
555 | 554 |
556 wm::ActivateWindow(w3.get()); | 555 wm::ActivateWindow(w3.get()); |
557 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); | 556 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); |
558 | 557 |
559 wm::ActivateWindow(w4.get()); | 558 wm::ActivateWindow(w4.get()); |
560 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); | 559 EXPECT_TRUE(wm::IsActiveWindow(w4.get())); |
561 } | 560 } |
562 | 561 |
563 } // namespace internal | |
564 } // namespace ash | 562 } // namespace ash |
OLD | NEW |