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 // Tests for: | 5 // Tests for: |
6 // Activation/Focus driven by: | 6 // Activation/Focus driven by: |
7 // - user input events | 7 // - user input events |
8 // - api calls | 8 // - api calls |
9 // - window hide/destruction | 9 // - window hide/destruction |
10 // - focus changes | 10 // - focus changes |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Hierarchy used by all tests: | 95 // Hierarchy used by all tests: |
96 // root_window | 96 // root_window |
97 // +-- w1 | 97 // +-- w1 |
98 // +-- w11 | 98 // +-- w11 |
99 // +-- w2 | 99 // +-- w2 |
100 // +-- w21 | 100 // +-- w21 |
101 // +-- w211 | 101 // +-- w211 |
102 aura::Window* w1 = aura::test::CreateTestWindowWithDelegate( | 102 aura::Window* w1 = aura::test::CreateTestWindowWithDelegate( |
103 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 1, | 103 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 1, |
104 gfx::Rect(0, 0, 50, 50), NULL); | 104 gfx::Rect(0, 0, 50, 50), root_window()); |
105 aura::test::CreateTestWindowWithDelegate( | 105 aura::test::CreateTestWindowWithDelegate( |
106 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 11, | 106 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 11, |
107 gfx::Rect(5, 5, 10, 10), w1); | 107 gfx::Rect(5, 5, 10, 10), w1); |
108 aura::Window* w2 = aura::test::CreateTestWindowWithDelegate( | 108 aura::Window* w2 = aura::test::CreateTestWindowWithDelegate( |
109 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 2, | 109 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 2, |
110 gfx::Rect(75, 75, 50, 50), NULL); | 110 gfx::Rect(75, 75, 50, 50), root_window()); |
111 aura::Window* w21 = aura::test::CreateTestWindowWithDelegate( | 111 aura::Window* w21 = aura::test::CreateTestWindowWithDelegate( |
112 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 21, | 112 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 21, |
113 gfx::Rect(5, 5, 10, 10), w2); | 113 gfx::Rect(5, 5, 10, 10), w2); |
114 aura::test::CreateTestWindowWithDelegate( | 114 aura::test::CreateTestWindowWithDelegate( |
115 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 211, | 115 aura::test::TestWindowDelegate::CreateSelfDestroyingDelegate(), 211, |
116 gfx::Rect(1, 1, 5, 5), w21); | 116 gfx::Rect(1, 1, 5, 5), w21); |
117 } | 117 } |
118 virtual void TearDown() OVERRIDE { | 118 virtual void TearDown() OVERRIDE { |
119 root_window()->RemovePreTargetHandler(focus_controller()); | 119 root_window()->RemovePreTargetHandler(focus_controller()); |
120 aura::test::AuraTestBase::TearDown(); | 120 aura::test::AuraTestBase::TearDown(); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 // - Focuses a window, consumes events. | 432 // - Focuses a window, consumes events. |
433 //FOCUS_CONTROLLER_TESTS(ConsumesFocusEvents); | 433 //FOCUS_CONTROLLER_TESTS(ConsumesFocusEvents); |
434 | 434 |
435 // - Activates a window, consumes events. | 435 // - Activates a window, consumes events. |
436 TEST_F(FocusControllerApiTest, ConsumeActivationEvents) { | 436 TEST_F(FocusControllerApiTest, ConsumeActivationEvents) { |
437 | 437 |
438 } | 438 } |
439 | 439 |
440 } // namespace corewm | 440 } // namespace corewm |
441 } // namespace views | 441 } // namespace views |
OLD | NEW |