OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/views/widget/native_widget_aura.h" | 5 #include "ui/views/widget/native_widget_aura.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
7 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
8 #include "ui/views/controls/textfield/textfield.h" | 9 #include "ui/views/controls/textfield/textfield.h" |
9 #include "ui/views/test/native_widget_factory.h" | 10 #include "ui/views/test/native_widget_factory.h" |
10 #include "ui/views/test/views_interactive_ui_test_base.h" | 11 #include "ui/views/test/views_interactive_ui_test_base.h" |
11 #include "ui/views/test/widget_test.h" | 12 #include "ui/views/test/widget_test.h" |
12 #include "ui/wm/core/base_focus_rules.h" | 13 #include "ui/wm/core/base_focus_rules.h" |
13 #include "ui/wm/core/focus_controller.h" | 14 #include "ui/wm/core/focus_controller.h" |
14 | 15 |
15 namespace views { | 16 namespace views { |
16 namespace test { | 17 namespace test { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 EXPECT_TRUE(textfield2a->HasFocus()); | 106 EXPECT_TRUE(textfield2a->HasFocus()); |
106 EXPECT_FALSE(textfield2b->HasFocus()); | 107 EXPECT_FALSE(textfield2b->HasFocus()); |
107 EXPECT_FALSE(textfield1->HasFocus()); | 108 EXPECT_FALSE(textfield1->HasFocus()); |
108 | 109 |
109 widget1->CloseNow(); | 110 widget1->CloseNow(); |
110 widget2->CloseNow(); | 111 widget2->CloseNow(); |
111 } | 112 } |
112 | 113 |
113 } // namespace test | 114 } // namespace test |
114 } // namespace views | 115 } // namespace views |
OLD | NEW |