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

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

Issue 2191833003: Use text affinity to return correct accessible line boundaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug in browser_accessibility_win.cc Created 4 years, 4 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 int IntValue(); 69 int IntValue();
70 int MinValue(); 70 int MinValue();
71 int MaxValue(); 71 int MaxValue();
72 std::string ValueDescription(); 72 std::string ValueDescription();
73 int ChildrenCount(); 73 int ChildrenCount();
74 74
75 // The following selection functions return global information about the 75 // The following selection functions return global information about the
76 // current selection and can be called on any object in the tree. 76 // current selection and can be called on any object in the tree.
77 v8::Local<v8::Value> SelectionAnchorObject(); 77 v8::Local<v8::Value> SelectionAnchorObject();
78 int SelectionAnchorOffset(); 78 int SelectionAnchorOffset();
79 std::string SelectionAnchorAffinity();
79 v8::Local<v8::Value> SelectionFocusObject(); 80 v8::Local<v8::Value> SelectionFocusObject();
80 int SelectionFocusOffset(); 81 int SelectionFocusOffset();
82 std::string SelectionFocusAffinity();
81 83
82 // The following selection functions return text offsets calculated starting 84 // The following selection functions return text offsets calculated starting
83 // at this object. They only report on a selection that is placed on the 85 // at this object. They only report on a selection that is placed on the
84 // current object or on any of its descendants. 86 // current object or on any of its descendants.
85 // For example, they can be used to retrieve the selection in an input or 87 // For example, they can be used to retrieve the selection in an input or
86 // a textarea. 88 // a textarea.
87 int SelectionStart(); 89 int SelectionStart();
88 int SelectionEnd(); 90 int SelectionEnd();
89 int SelectionStartLineNumber(); 91 int SelectionStartLineNumber();
90 int SelectionEndLineNumber(); 92 int SelectionEndLineNumber();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override; 221 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override;
220 222
221 private: 223 private:
222 typedef v8::PersistentValueVector<v8::Object> ElementList; 224 typedef v8::PersistentValueVector<v8::Object> ElementList;
223 ElementList elements_; 225 ElementList elements_;
224 }; 226 };
225 227
226 } // namespace test_runner 228 } // namespace test_runner
227 229
228 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ 230 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/chrome_extension_messages.h ('k') | components/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698