Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 2059533003: Expose html attributes in automation tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/automation_internal_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698