| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <set> | 5 #include <set> |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/path_service.h" | |
| 13 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 14 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
| 15 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 17 #include "content/browser/accessibility/accessibility_tree_formatter.h" | 16 #include "content/browser/accessibility/accessibility_tree_formatter.h" |
| 18 #include "content/browser/accessibility/browser_accessibility.h" | 17 #include "content/browser/accessibility/browser_accessibility.h" |
| 19 #include "content/browser/accessibility/browser_accessibility_manager.h" | 18 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 20 #include "content/browser/web_contents/web_contents_impl.h" | 19 #include "content/browser/web_contents/web_contents_impl.h" |
| 21 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 22 #include "content/public/common/content_paths.h" | 21 #include "content/public/common/content_paths.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 hover_waiter.WaitForNotification(); | 70 hover_waiter.WaitForNotification(); |
| 72 | 71 |
| 73 // Assert that the hover event was fired on the root of the tree. | 72 // Assert that the hover event was fired on the root of the tree. |
| 74 int hover_target_id = hover_waiter.event_target_id(); | 73 int hover_target_id = hover_waiter.event_target_id(); |
| 75 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); | 74 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); |
| 76 ASSERT_TRUE(hovered_node != NULL); | 75 ASSERT_TRUE(hovered_node != NULL); |
| 77 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); | 76 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); |
| 78 } | 77 } |
| 79 | 78 |
| 80 } // namespace content | 79 } // namespace content |
| OLD | NEW |