OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/extensions/extension_accessibility_api.h" | 10 #include "chrome/browser/extensions/extension_accessibility_api.h" |
11 #include "chrome/browser/ui/views/accessibility_event_router_views.h" | 11 #include "chrome/browser/ui/views/accessibility_event_router_views.h" |
12 #include "chrome/browser/ui/views/accessible_view_helper.h" | 12 #include "chrome/browser/ui/views/accessible_view_helper.h" |
13 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
14 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
15 #include "chrome/test/testing_profile.h" | 15 #include "chrome/test/testing_profile.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "views/controls/button/native_button.h" | 17 #include "views/controls/button/native_button.h" |
18 #include "views/grid_layout.h" | 18 #include "views/layout/grid_layout.h" |
19 #include "views/views_delegate.h" | 19 #include "views/views_delegate.h" |
20 #include "views/widget/root_view.h" | 20 #include "views/widget/root_view.h" |
21 #include "views/window/window.h" | 21 #include "views/window/window.h" |
22 | 22 |
23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
24 #include "views/widget/widget_win.h" | 24 #include "views/widget/widget_win.h" |
25 #elif defined(OS_LINUX) | 25 #elif defined(OS_LINUX) |
26 #include "views/widget/widget_gtk.h" | 26 #include "views/widget/widget_gtk.h" |
27 #endif | 27 #endif |
28 | 28 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 EXPECT_EQ(2, focus_event_count_); | 165 EXPECT_EQ(2, focus_event_count_); |
166 EXPECT_EQ(kButton3NewASCII, last_control_name_); | 166 EXPECT_EQ(kButton3NewASCII, last_control_name_); |
167 | 167 |
168 // Advance to button 1 and check the notification. | 168 // Advance to button 1 and check the notification. |
169 focus_manager->AdvanceFocus(false); | 169 focus_manager->AdvanceFocus(false); |
170 EXPECT_EQ(3, focus_event_count_); | 170 EXPECT_EQ(3, focus_event_count_); |
171 EXPECT_EQ(kButton1ASCII, last_control_name_); | 171 EXPECT_EQ(kButton1ASCII, last_control_name_); |
172 } | 172 } |
173 | 173 |
174 #endif // defined(TOOLKIT_VIEWS) | 174 #endif // defined(TOOLKIT_VIEWS) |
OLD | NEW |