OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 // Retrieve the value of a string attribute from the attribute map and | 211 // Retrieve the value of a string attribute from the attribute map and |
212 // returns true if found. | 212 // returns true if found. |
213 bool GetStringAttribute(WebAccessibility::StringAttribute attribute, | 213 bool GetStringAttribute(WebAccessibility::StringAttribute attribute, |
214 string16* value) const; | 214 string16* value) const; |
215 | 215 |
216 // Retrieve the value of a html attribute from the attribute map and | 216 // Retrieve the value of a html attribute from the attribute map and |
217 // returns true if found. | 217 // returns true if found. |
218 bool GetHtmlAttribute(const char* attr, string16* value) const; | 218 bool GetHtmlAttribute(const char* attr, string16* value) const; |
219 | 219 |
| 220 // Returns true if the bit corresponding to the given state enum is 1. |
| 221 bool HasState(WebAccessibility::State state_enum) const; |
| 222 |
220 // Returns true if this node is an editable text field of any kind. | 223 // Returns true if this node is an editable text field of any kind. |
221 bool IsEditableText() const; | 224 bool IsEditableText() const; |
222 | 225 |
223 // Append the text from this node and its children. | 226 // Append the text from this node and its children. |
224 string16 GetTextRecursive() const; | 227 string16 GetTextRecursive() const; |
225 | 228 |
226 protected: | 229 protected: |
227 BrowserAccessibility(); | 230 BrowserAccessibility(); |
228 | 231 |
229 // The manager of this tree of accessibility objects; needed for | 232 // The manager of this tree of accessibility objects; needed for |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // tree, a client may still be holding onto a pointer to this object, so | 273 // tree, a client may still be holding onto a pointer to this object, so |
271 // we mark it as inactive so that calls to any of this object's methods | 274 // we mark it as inactive so that calls to any of this object's methods |
272 // immediately return failure. | 275 // immediately return failure. |
273 bool instance_active_; | 276 bool instance_active_; |
274 | 277 |
275 private: | 278 private: |
276 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 279 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
277 }; | 280 }; |
278 | 281 |
279 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 282 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |