| 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::Value> SelectionAnchorObject(); |
| 76 int SelectionAnchorOffset(); |
| 77 v8::Local<v8::Value> SelectionFocusObject(); |
| 78 int SelectionFocusOffset(); |
| 79 |
| 80 // The following selection functions return text offsets calculated starting |
| 81 // at this object. They only report on a selection that is placed on the |
| 82 // current object or on any of its descendants. |
| 83 // For example, they can be used to retrieve the selection in an input or |
| 84 // a textarea. |
| 72 int SelectionStart(); | 85 int SelectionStart(); |
| 73 int SelectionEnd(); | 86 int SelectionEnd(); |
| 74 int SelectionStartLineNumber(); | 87 int SelectionStartLineNumber(); |
| 75 int SelectionEndLineNumber(); | 88 int SelectionEndLineNumber(); |
| 89 |
| 76 bool IsEnabled(); | 90 bool IsEnabled(); |
| 77 bool IsRequired(); | 91 bool IsRequired(); |
| 78 bool IsRichlyEditable(); | 92 bool IsRichlyEditable(); |
| 79 bool IsFocused(); | 93 bool IsFocused(); |
| 80 bool IsFocusable(); | 94 bool IsFocusable(); |
| 81 bool IsSelected(); | 95 bool IsSelected(); |
| 82 bool IsSelectable(); | 96 bool IsSelectable(); |
| 83 bool IsMultiSelectable(); | 97 bool IsMultiSelectable(); |
| 84 bool IsSelectedOptionActive(); | 98 bool IsSelectedOptionActive(); |
| 85 bool IsExpanded(); | 99 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; | 200 v8::Local<v8::Object> GetOrCreate(const blink::WebAXObject&) override; |
| 187 | 201 |
| 188 private: | 202 private: |
| 189 typedef v8::PersistentValueVector<v8::Object> ElementList; | 203 typedef v8::PersistentValueVector<v8::Object> ElementList; |
| 190 ElementList elements_; | 204 ElementList elements_; |
| 191 }; | 205 }; |
| 192 | 206 |
| 193 } // namespace test_runner | 207 } // namespace test_runner |
| 194 | 208 |
| 195 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ | 209 #endif // COMPONENTS_TEST_RUNNER_WEB_AX_OBJECT_PROXY_H_ |
| OLD | NEW |