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

Side by Side Diff: components/test_runner/web_ax_object_proxy.h

Issue 2047873002: Add interface to get relative bounding box rect of AX objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate out one change that broke existing tests 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
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 COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 int PosInSet(); 117 int PosInSet();
118 int SetSize(); 118 int SetSize();
119 int ClickPointX(); 119 int ClickPointX();
120 int ClickPointY(); 120 int ClickPointY();
121 int32_t RowCount(); 121 int32_t RowCount();
122 int32_t RowHeadersCount(); 122 int32_t RowHeadersCount();
123 int32_t ColumnCount(); 123 int32_t ColumnCount();
124 int32_t ColumnHeadersCount(); 124 int32_t ColumnHeadersCount();
125 bool IsClickable(); 125 bool IsClickable();
126 bool IsButtonStateMixed(); 126 bool IsButtonStateMixed();
127 int BoundsX();
128 int BoundsY();
129 int BoundsWidth();
130 int BoundsHeight();
127 131
128 // Bound methods. 132 // Bound methods.
129 v8::Local<v8::Object> AriaControlsElementAtIndex(unsigned index); 133 v8::Local<v8::Object> AriaControlsElementAtIndex(unsigned index);
130 v8::Local<v8::Object> AriaFlowToElementAtIndex(unsigned index); 134 v8::Local<v8::Object> AriaFlowToElementAtIndex(unsigned index);
131 v8::Local<v8::Object> AriaOwnsElementAtIndex(unsigned index); 135 v8::Local<v8::Object> AriaOwnsElementAtIndex(unsigned index);
132 std::string AllAttributes(); 136 std::string AllAttributes();
133 std::string AttributesOfChildren(); 137 std::string AttributesOfChildren();
134 int LineForIndex(int index); 138 int LineForIndex(int index);
135 std::string BoundsForRange(int start, int end); 139 std::string BoundsForRange(int start, int end);
136 v8::Local<v8::Object> ChildAtIndex(int index); 140 v8::Local<v8::Object> ChildAtIndex(int index);
(...skipping 17 matching lines...) Expand all
154 void ShowMenu(); 158 void ShowMenu();
155 void Press(); 159 void Press();
156 bool SetValue(const std::string& value); 160 bool SetValue(const std::string& value);
157 bool IsEqual(v8::Local<v8::Object> proxy); 161 bool IsEqual(v8::Local<v8::Object> proxy);
158 void SetNotificationListener(v8::Local<v8::Function> callback); 162 void SetNotificationListener(v8::Local<v8::Function> callback);
159 void UnsetNotificationListener(); 163 void UnsetNotificationListener();
160 void TakeFocus(); 164 void TakeFocus();
161 void ScrollToMakeVisible(); 165 void ScrollToMakeVisible();
162 void ScrollToMakeVisibleWithSubFocus(int x, int y, int width, int height); 166 void ScrollToMakeVisibleWithSubFocus(int x, int y, int width, int height);
163 void ScrollToGlobalPoint(int x, int y); 167 void ScrollToGlobalPoint(int x, int y);
168 int ScrollX();
aboxhall 2016/06/09 23:05:30 Mention this in description too?
dmazzoni 2016/06/10 16:55:39 Done.
169 int ScrollY();
164 int WordStart(int character_index); 170 int WordStart(int character_index);
165 int WordEnd(int character_index); 171 int WordEnd(int character_index);
166 v8::Local<v8::Object> NextOnLine(); 172 v8::Local<v8::Object> NextOnLine();
167 v8::Local<v8::Object> PreviousOnLine(); 173 v8::Local<v8::Object> PreviousOnLine();
168 std::string MisspellingAtIndex(int index); 174 std::string MisspellingAtIndex(int index);
175 v8::Local<v8::Object> OffsetContainer();
176 int BoundsInContainerX();
177 int BoundsInContainerY();
178 int BoundsInContainerWidth();
179 int BoundsInContainerHeight();
180 bool HasNonIdentityTransform();
169 181
170 std::string Name(); 182 std::string Name();
171 std::string NameFrom(); 183 std::string NameFrom();
172 int NameElementCount(); 184 int NameElementCount();
173 v8::Local<v8::Object> NameElementAtIndex(unsigned index); 185 v8::Local<v8::Object> NameElementAtIndex(unsigned index);
174 186
175 std::string Description(); 187 std::string Description();
176 std::string DescriptionFrom(); 188 std::string DescriptionFrom();
177 int MisspellingsCount(); 189 int MisspellingsCount();
178 int DescriptionElementCount(); 190 int DescriptionElementCount();
(...skipping 28 matching lines...) Expand all
207 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override; 219 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override;
208 220
209 private: 221 private:
210 typedef v8::PersistentValueVector<v8::Object> ElementList; 222 typedef v8::PersistentValueVector<v8::Object> ElementList;
211 ElementList elements_; 223 ElementList elements_;
212 }; 224 };
213 225
214 } // namespace test_runner 226 } // namespace test_runner
215 227
216 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 228 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/web_ax_object_proxy.cc » ('j') | components/test_runner/web_ax_object_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698