| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/common/extensions/api/automation.h" | 10 #include "chrome/common/extensions/api/automation.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 int end)); | 125 int end)); |
| 126 | 126 |
| 127 // | 127 // |
| 128 // Access the cached accessibility trees and properties of their nodes. | 128 // Access the cached accessibility trees and properties of their nodes. |
| 129 // | 129 // |
| 130 | 130 |
| 131 // Args: int ax_tree_id, int node_id, Returns: int child_id. | 131 // Args: int ax_tree_id, int node_id, Returns: int child_id. |
| 132 void GetChildIDAtIndex(const v8::FunctionCallbackInfo<v8::Value>& args); | 132 void GetChildIDAtIndex(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 133 | 133 |
| 134 // Args: int ax_tree_id, int node_id | 134 // Args: int ax_tree_id, int node_id |
| 135 // Returns: JS object with a map from html attribute key to value. |
| 136 void GetHtmlAttributes(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 137 |
| 138 // Args: int ax_tree_id, int node_id |
| 135 // Returns: JS object with a string key for each state flag that's set. | 139 // Returns: JS object with a string key for each state flag that's set. |
| 136 void GetState(const v8::FunctionCallbackInfo<v8::Value>& args); | 140 void GetState(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 137 | 141 |
| 138 // | 142 // |
| 139 // Helper functions. | 143 // Helper functions. |
| 140 // | 144 // |
| 141 | 145 |
| 142 // Handle accessibility events from the browser process. | 146 // Handle accessibility events from the browser process. |
| 143 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params, | 147 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params, |
| 144 bool is_active_profile); | 148 bool is_active_profile); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 172 tree_change_observer_overall_filter_; | 176 tree_change_observer_overall_filter_; |
| 173 std::vector<int> deleted_node_ids_; | 177 std::vector<int> deleted_node_ids_; |
| 174 std::vector<int> text_changed_node_ids_; | 178 std::vector<int> text_changed_node_ids_; |
| 175 | 179 |
| 176 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); | 180 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); |
| 177 }; | 181 }; |
| 178 | 182 |
| 179 } // namespace extensions | 183 } // namespace extensions |
| 180 | 184 |
| 181 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 185 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
| OLD | NEW |