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/wm/core/transient_window_manager.h" | 5 #include "ui/wm/core/transient_window_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "ui/aura/client/window_tree_client.h" | 10 #include "ui/aura/client/window_parenting_client.h" |
11 #include "ui/aura/test/aura_test_base.h" | 11 #include "ui/aura/test/aura_test_base.h" |
12 #include "ui/aura/test/test_windows.h" | 12 #include "ui/aura/test/test_windows.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ui/wm/core/transient_window_observer.h" | 15 #include "ui/wm/core/transient_window_observer.h" |
16 #include "ui/wm/core/window_util.h" | 16 #include "ui/wm/core/window_util.h" |
17 #include "ui/wm/core/wm_state.h" | 17 #include "ui/wm/core/wm_state.h" |
18 | 18 |
19 using aura::Window; | 19 using aura::Window; |
20 | 20 |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 EXPECT_EQ(0, test_observer.remove_count()); | 455 EXPECT_EQ(0, test_observer.remove_count()); |
456 | 456 |
457 RemoveTransientChild(parent.get(), w1.get()); | 457 RemoveTransientChild(parent.get(), w1.get()); |
458 EXPECT_EQ(1, test_observer.add_count()); | 458 EXPECT_EQ(1, test_observer.add_count()); |
459 EXPECT_EQ(1, test_observer.remove_count()); | 459 EXPECT_EQ(1, test_observer.remove_count()); |
460 | 460 |
461 TransientWindowManager::Get(parent.get())->RemoveObserver(&test_observer); | 461 TransientWindowManager::Get(parent.get())->RemoveObserver(&test_observer); |
462 } | 462 } |
463 | 463 |
464 } // namespace wm | 464 } // namespace wm |
OLD | NEW |