Chromium Code Reviews| 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 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 62 std::string Language(); | 62 std::string Language(); |
| 63 int X(); | 63 int X(); |
| 64 int Y(); | 64 int Y(); |
| 65 int Width(); | 65 int Width(); |
| 66 int Height(); | 66 int Height(); |
| 67 int IntValue(); | 67 int IntValue(); |
| 68 int MinValue(); | 68 int MinValue(); |
| 69 int MaxValue(); | 69 int MaxValue(); |
| 70 std::string ValueDescription(); | 70 std::string ValueDescription(); |
| 71 int ChildrenCount(); | 71 int ChildrenCount(); |
| 72 | |
| 73 // The following selection functions return global information about the | |
| 74 // current selection and can be called on any object in the tree. | |
| 75 v8::Local<v8::Object> SelectionAnchorObject(); | |
| 76 int SelectionAnchorOffset(); | |
| 77 v8::Local<v8::Object> SelectionFocusObject(); | |
| 78 int SelectionFocusOffset(); | |
| 79 // The following selection functions return text offsets calculated starting | |
|
dmazzoni
2015/06/22 19:23:21
Did you mean "starting at this object".
| |
| 80 // the object. They only report on a selection that is placed on the current | |
| 81 // object or on any of its descendants. | |
|
dmazzoni
2015/06/22 19:23:21
Wouldn't it be more accurate to say, they report o
| |
| 72 int SelectionStart(); | 82 int SelectionStart(); |
| 73 int SelectionEnd(); | 83 int SelectionEnd(); |
| 74 int SelectionStartLineNumber(); | 84 int SelectionStartLineNumber(); |
| 75 int SelectionEndLineNumber(); | 85 int SelectionEndLineNumber(); |
| 86 | |
| 76 bool IsEnabled(); | 87 bool IsEnabled(); |
| 77 bool IsRequired(); | 88 bool IsRequired(); |
| 78 bool IsRichlyEditable(); | 89 bool IsRichlyEditable(); |
| 79 bool IsFocused(); | 90 bool IsFocused(); |
| 80 bool IsFocusable(); | 91 bool IsFocusable(); |
| 81 bool IsSelected(); | 92 bool IsSelected(); |
| 82 bool IsSelectable(); | 93 bool IsSelectable(); |
| 83 bool IsMultiSelectable(); | 94 bool IsMultiSelectable(); |
| 84 bool IsSelectedOptionActive(); | 95 bool IsSelectedOptionActive(); |
| 85 bool IsExpanded(); | 96 bool IsExpanded(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override; | 197 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override; |
| 187 | 198 |
| 188 private: | 199 private: |
| 189 typedef v8::PersistentValueVector<v8::Object> ElementList; | 200 typedef v8::PersistentValueVector<v8::Object> ElementList; |
| 190 ElementList elements_; | 201 ElementList elements_; |
| 191 }; | 202 }; |
| 192 | 203 |
| 193 } // namespace test_runner | 204 } // namespace test_runner |
| 194 | 205 |
| 195 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ | 206 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ |
| OLD | NEW |