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 #ifndef COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ | 5 #ifndef CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ |
6 #define COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ | 6 #define CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "components/test_runner/web_ax_object_proxy.h" | 12 #include "content/shell/test_runner/web_ax_object_proxy.h" |
13 #include "third_party/WebKit/public/web/WebAXObject.h" | 13 #include "third_party/WebKit/public/web/WebAXObject.h" |
14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 class WebLocalFrame; | 17 class WebLocalFrame; |
18 class WebString; | 18 class WebString; |
19 class WebView; | 19 class WebView; |
20 } | 20 } |
21 | 21 |
22 namespace test_runner { | 22 namespace test_runner { |
(...skipping 17 matching lines...) Expand all Loading... |
40 | 40 |
41 // Bound methods and properties | 41 // Bound methods and properties |
42 void LogAccessibilityEvents(); | 42 void LogAccessibilityEvents(); |
43 void SetNotificationListener(v8::Local<v8::Function> callback); | 43 void SetNotificationListener(v8::Local<v8::Function> callback); |
44 void UnsetNotificationListener(); | 44 void UnsetNotificationListener(); |
45 v8::Local<v8::Object> FocusedElement(); | 45 v8::Local<v8::Object> FocusedElement(); |
46 v8::Local<v8::Object> RootElement(); | 46 v8::Local<v8::Object> RootElement(); |
47 v8::Local<v8::Object> AccessibleElementById(const std::string& id); | 47 v8::Local<v8::Object> AccessibleElementById(const std::string& id); |
48 | 48 |
49 v8::Local<v8::Object> FindAccessibleElementByIdRecursive( | 49 v8::Local<v8::Object> FindAccessibleElementByIdRecursive( |
50 const blink::WebAXObject&, const blink::WebString& id); | 50 const blink::WebAXObject&, |
| 51 const blink::WebString& id); |
51 | 52 |
52 // If true, will log all accessibility notifications. | 53 // If true, will log all accessibility notifications. |
53 bool log_accessibility_events_; | 54 bool log_accessibility_events_; |
54 | 55 |
55 WebAXObjectProxyList elements_; | 56 WebAXObjectProxyList elements_; |
56 | 57 |
57 v8::Persistent<v8::Function> notification_callback_; | 58 v8::Persistent<v8::Function> notification_callback_; |
58 | 59 |
59 blink::WebView* web_view(); | 60 blink::WebView* web_view(); |
60 WebViewTestProxyBase* web_view_test_proxy_base_; | 61 WebViewTestProxyBase* web_view_test_proxy_base_; |
61 | 62 |
62 base::WeakPtrFactory<AccessibilityController> weak_factory_; | 63 base::WeakPtrFactory<AccessibilityController> weak_factory_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(AccessibilityController); | 65 DISALLOW_COPY_AND_ASSIGN(AccessibilityController); |
65 }; | 66 }; |
66 | 67 |
67 } // namespace test_runner | 68 } // namespace test_runner |
68 | 69 |
69 #endif // COMPONENTS_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ | 70 #endif // CONTENT_SHELL_TEST_RUNNER_ACCESSIBILITY_CONTROLLER_H_ |
OLD | NEW |