OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ash/wm/solo_window_tracker.h" | 5 #include "ash/wm/solo_window_tracker.h" |
6 | 6 |
7 #include "ash/ash_constants.h" | 7 #include "ash/ash_constants.h" |
8 #include "ash/ash_switches.h" | 8 #include "ash/ash_switches.h" |
9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
10 #include "ash/screen_ash.h" | 10 #include "ash/screen_ash.h" |
11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
12 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
14 #include "ash/wm/window_resizer.h" | 14 #include "ash/wm/window_resizer.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "ui/aura/client/aura_constants.h" | 17 #include "ui/aura/client/aura_constants.h" |
18 #include "ui/aura/root_window.h" | |
19 #include "ui/aura/test/event_generator.h" | 18 #include "ui/aura/test/event_generator.h" |
20 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
| 20 #include "ui/aura/window_event_dispatcher.h" |
21 #include "ui/aura/window_observer.h" | 21 #include "ui/aura/window_observer.h" |
22 #include "ui/base/hit_test.h" | 22 #include "ui/base/hit_test.h" |
23 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
24 | 24 |
25 namespace ash { | 25 namespace ash { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 class WindowRepaintChecker : public aura::WindowObserver { | 29 class WindowRepaintChecker : public aura::WindowObserver { |
30 public: | 30 public: |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 w.reset(); | 420 w.reset(); |
421 EXPECT_EQ(NULL, GetWindowWithSoloHeaderInPrimary()); | 421 EXPECT_EQ(NULL, GetWindowWithSoloHeaderInPrimary()); |
422 | 422 |
423 // Recreate another window again. | 423 // Recreate another window again. |
424 w.reset(CreateWindowInPrimary()); | 424 w.reset(CreateWindowInPrimary()); |
425 w->Show(); | 425 w->Show(); |
426 EXPECT_EQ(w.get(), GetWindowWithSoloHeaderInPrimary()); | 426 EXPECT_EQ(w.get(), GetWindowWithSoloHeaderInPrimary()); |
427 } | 427 } |
428 | 428 |
429 } // namespace ash | 429 } // namespace ash |
OLD | NEW |