| 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 "ash/wm/activation_controller.h" | 5 #include "ash/wm/activation_controller.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/test/test_activation_delegate.h" | 10 #include "ash/test/test_activation_delegate.h" |
| 11 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
| 12 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
| 13 #include "ui/aura/focus_manager.h" | 13 #include "ui/aura/focus_manager.h" |
| 14 #include "ui/aura/root_window.h" | 14 #include "ui/aura/root_window.h" |
| 15 #include "ui/aura/test/event_generator.h" | 15 #include "ui/aura/test/event_generator.h" |
| 16 #include "ui/aura/test/test_window_delegate.h" | 16 #include "ui/aura/test/test_window_delegate.h" |
| 17 #include "ui/aura/test/test_windows.h" | 17 #include "ui/aura/test/test_windows.h" |
| 18 #include "ui/gfx/compositor/layer.h" | 18 #include "ui/compositor/layer.h" |
| 19 | 19 |
| 20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 21 // Windows headers define macros for these function names which screw with us. | 21 // Windows headers define macros for these function names which screw with us. |
| 22 #if defined(CreateWindow) | 22 #if defined(CreateWindow) |
| 23 #undef CreateWindow | 23 #undef CreateWindow |
| 24 #endif | 24 #endif |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate( | 460 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate( |
| 461 &wd, -1, gfx::Rect(50, 50, 50, 50), NULL)); | 461 &wd, -1, gfx::Rect(50, 50, 50, 50), NULL)); |
| 462 | 462 |
| 463 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); | 463 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); |
| 464 w1->layer()->SetVisible(false); | 464 w1->layer()->SetVisible(false); |
| 465 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); | 465 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); |
| 466 } | 466 } |
| 467 | 467 |
| 468 } // namespace test | 468 } // namespace test |
| 469 } // namespace ash | 469 } // namespace ash |
| OLD | NEW |