OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ | 5 #ifndef CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ |
6 #define CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ | 6 #define CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/common/accessibility_mode_enums.h" | 9 #include "content/common/accessibility_mode_enums.h" |
10 #include "ui/accessibility/ax_node_data.h" | 10 #include "ui/accessibility/ax_node_data.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // Callback from RenderViewHostImpl. | 50 // Callback from RenderViewHostImpl. |
51 void OnAccessibilityEvent(ui::AXEvent event, int event_target_id); | 51 void OnAccessibilityEvent(ui::AXEvent event, int event_target_id); |
52 | 52 |
53 // Helper function to determine if the accessibility tree in | 53 // Helper function to determine if the accessibility tree in |
54 // GetAXTree() is about the page with the url "about:blank". | 54 // GetAXTree() is about the page with the url "about:blank". |
55 bool IsAboutBlank(); | 55 bool IsAboutBlank(); |
56 | 56 |
57 RenderFrameHostImpl* frame_host_; | 57 RenderFrameHostImpl* frame_host_; |
58 ui::AXEvent event_to_wait_for_; | 58 ui::AXEvent event_to_wait_for_; |
59 scoped_refptr<MessageLoopRunner> loop_runner_; | 59 scoped_refptr<MessageLoopRunner> loop_runner_; |
| 60 int event_target_id_; |
| 61 |
60 base::WeakPtrFactory<AccessibilityNotificationWaiter> weak_factory_; | 62 base::WeakPtrFactory<AccessibilityNotificationWaiter> weak_factory_; |
61 int event_target_id_; | |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(AccessibilityNotificationWaiter); | 64 DISALLOW_COPY_AND_ASSIGN(AccessibilityNotificationWaiter); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace content | 67 } // namespace content |
67 | 68 |
68 #endif // CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ | 69 #endif // CONTENT_TEST_ACCESSIBILITY_BROWSER_TEST_UTILS_H_ |
OLD | NEW |