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 CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/common/extensions/api/automation.h" | 9 #include "chrome/common/extensions/api/automation.h" |
10 #include "extensions/renderer/object_backed_native_handler.h" | 10 #include "extensions/renderer/object_backed_native_handler.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 v8::ReturnValue<v8::Value> result, | 84 v8::ReturnValue<v8::Value> result, |
85 TreeCache* cache, | 85 TreeCache* cache, |
86 ui::AXNode* node)); | 86 ui::AXNode* node)); |
87 | 87 |
88 void RouteNodeIDPlusAttributeFunction( | 88 void RouteNodeIDPlusAttributeFunction( |
89 const std::string& name, | 89 const std::string& name, |
90 void (*callback)(v8::Isolate* isolate, | 90 void (*callback)(v8::Isolate* isolate, |
91 v8::ReturnValue<v8::Value> result, | 91 v8::ReturnValue<v8::Value> result, |
92 ui::AXNode* node, | 92 ui::AXNode* node, |
93 const std::string& attribute_name)); | 93 const std::string& attribute_name)); |
| 94 void RouteNodeIDPlusRangeFunction( |
| 95 const std::string& name, |
| 96 void (*callback)(v8::Isolate* isolate, |
| 97 v8::ReturnValue<v8::Value> result, |
| 98 TreeCache* cache, |
| 99 ui::AXNode* node, |
| 100 int start, |
| 101 int end)); |
94 | 102 |
95 // | 103 // |
96 // Access the cached accessibility trees and properties of their nodes. | 104 // Access the cached accessibility trees and properties of their nodes. |
97 // | 105 // |
98 | 106 |
99 // Args: int ax_tree_id, int node_id, Returns: int parent_node_id. | 107 // Args: int ax_tree_id, int node_id, Returns: int parent_node_id. |
100 void GetParentID(const v8::FunctionCallbackInfo<v8::Value>& args); | 108 void GetParentID(const v8::FunctionCallbackInfo<v8::Value>& args); |
101 | 109 |
102 // Args: int ax_tree_id, int node_id, Returns: int child_count. | 110 // Args: int ax_tree_id, int node_id, Returns: int child_count. |
103 void GetChildCount(const v8::FunctionCallbackInfo<v8::Value>& args); | 111 void GetChildCount(const v8::FunctionCallbackInfo<v8::Value>& args); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; | 177 base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_; |
170 scoped_refptr<AutomationMessageFilter> message_filter_; | 178 scoped_refptr<AutomationMessageFilter> message_filter_; |
171 bool is_active_profile_; | 179 bool is_active_profile_; |
172 | 180 |
173 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); | 181 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); |
174 }; | 182 }; |
175 | 183 |
176 } // namespace extensions | 184 } // namespace extensions |
177 | 185 |
178 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 186 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
OLD | NEW |