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

Side by Side Diff: content/shell/renderer/test_runner/web_ax_object_proxy.h

Issue 833483002: Adds API for testing aria-controls/flowto/owns properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool IsReadOnly(); 92 bool IsReadOnly();
93 std::string Orientation(); 93 std::string Orientation();
94 int ClickPointX(); 94 int ClickPointX();
95 int ClickPointY(); 95 int ClickPointY();
96 int32_t RowCount(); 96 int32_t RowCount();
97 int32_t ColumnCount(); 97 int32_t ColumnCount();
98 bool IsClickable(); 98 bool IsClickable();
99 bool IsButtonStateMixed(); 99 bool IsButtonStateMixed();
100 100
101 // Bound methods. 101 // Bound methods.
102 v8::Handle<v8::Object> AriaControlsElementAtIndex(unsigned index);
103 v8::Handle<v8::Object> AriaFlowToElementAtIndex(unsigned index);
104 v8::Handle<v8::Object> AriaOwnsElementAtIndex(unsigned index);
102 std::string AllAttributes(); 105 std::string AllAttributes();
103 std::string AttributesOfChildren(); 106 std::string AttributesOfChildren();
104 int LineForIndex(int index); 107 int LineForIndex(int index);
105 std::string BoundsForRange(int start, int end); 108 std::string BoundsForRange(int start, int end);
106 v8::Handle<v8::Object> ChildAtIndex(int index); 109 v8::Handle<v8::Object> ChildAtIndex(int index);
107 v8::Handle<v8::Object> ElementAtPoint(int x, int y); 110 v8::Handle<v8::Object> ElementAtPoint(int x, int y);
108 v8::Handle<v8::Object> TableHeader(); 111 v8::Handle<v8::Object> TableHeader();
109 std::string RowIndexRange(); 112 std::string RowIndexRange();
110 std::string ColumnIndexRange(); 113 std::string ColumnIndexRange();
111 v8::Handle<v8::Object> CellForColumnAndRow(int column, int row); 114 v8::Handle<v8::Object> CellForColumnAndRow(int column, int row);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 v8::Handle<v8::Object> CreateRoot(const blink::WebAXObject&); 163 v8::Handle<v8::Object> CreateRoot(const blink::WebAXObject&);
161 164
162 private: 165 private:
163 typedef v8::PersistentValueVector<v8::Object> ElementList; 166 typedef v8::PersistentValueVector<v8::Object> ElementList;
164 ElementList elements_; 167 ElementList elements_;
165 }; 168 };
166 169
167 } // namespace content 170 } // namespace content
168 171
169 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 172 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698