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 "ui/views/focus/focus_manager.h" | 5 #include "ui/views/focus/focus_manager.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "ui/base/models/combobox_model.h" | 10 #include "ui/base/models/combobox_model.h" |
11 #include "ui/views/controls/button/checkbox.h" | 11 #include "ui/views/controls/button/checkbox.h" |
12 #include "ui/views/controls/button/label_button.h" | 12 #include "ui/views/controls/button/label_button.h" |
13 #include "ui/views/controls/button/radio_button.h" | 13 #include "ui/views/controls/button/radio_button.h" |
14 #include "ui/views/controls/combobox/combobox.h" | 14 #include "ui/views/controls/combobox/combobox.h" |
15 #include "ui/views/controls/label.h" | 15 #include "ui/views/controls/label.h" |
16 #include "ui/views/controls/link.h" | 16 #include "ui/views/controls/link.h" |
17 #include "ui/views/controls/native/native_view_host.h" | 17 #include "ui/views/controls/native/native_view_host.h" |
18 #include "ui/views/controls/scroll_view.h" | 18 #include "ui/views/controls/scroll_view.h" |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 GetFocusManager()->AdvanceFocus(true); | 780 GetFocusManager()->AdvanceFocus(true); |
781 View* focused_view = GetFocusManager()->GetFocusedView(); | 781 View* focused_view = GetFocusManager()->GetFocusedView(); |
782 EXPECT_TRUE(focused_view != NULL); | 782 EXPECT_TRUE(focused_view != NULL); |
783 if (focused_view) | 783 if (focused_view) |
784 EXPECT_EQ(kRightTraversalIDs[j], focused_view->id()); | 784 EXPECT_EQ(kRightTraversalIDs[j], focused_view->id()); |
785 } | 785 } |
786 } | 786 } |
787 } | 787 } |
788 | 788 |
789 } // namespace views | 789 } // namespace views |
OLD | NEW |