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" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Send a hit test request, and wait for the hover event in response. | 66 // Send a hit test request, and wait for the hover event in response. |
67 AccessibilityNotificationWaiter hover_waiter( | 67 AccessibilityNotificationWaiter hover_waiter( |
68 shell(), AccessibilityModeComplete, | 68 shell(), AccessibilityModeComplete, |
69 ui::AX_EVENT_HOVER); | 69 ui::AX_EVENT_HOVER); |
70 manager->delegate()->AccessibilityHitTest(gfx::Point(-1, -1)); | 70 manager->delegate()->AccessibilityHitTest(gfx::Point(-1, -1)); |
71 hover_waiter.WaitForNotification(); | 71 hover_waiter.WaitForNotification(); |
72 | 72 |
73 // Assert that the hover event was fired on the root of the tree. | 73 // Assert that the hover event was fired on the root of the tree. |
74 int hover_target_id = hover_waiter.event_target_id(); | 74 int hover_target_id = hover_waiter.event_target_id(); |
75 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); | 75 BrowserAccessibility* hovered_node = manager->GetFromID(hover_target_id); |
76 ASSERT_TRUE(hovered_node != NULL); | 76 ASSERT_TRUE(hovered_node != nullptr); |
77 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); | 77 ASSERT_EQ(ui::AX_ROLE_ROOT_WEB_AREA, hovered_node->GetRole()); |
78 } | 78 } |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
OLD | NEW |