| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // aria-expanded (expandable) | 234 // aria-expanded (expandable) |
| 235 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state | 235 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state |
| 236 // aria-checked (checkable) -- supports 4th "mixed state" | 236 // aria-checked (checkable) -- supports 4th "mixed state" |
| 237 bool GetAriaTristate(const char* attr_name, | 237 bool GetAriaTristate(const char* attr_name, |
| 238 bool* is_defined, | 238 bool* is_defined, |
| 239 bool* is_mixed) const; | 239 bool* is_mixed) const; |
| 240 | 240 |
| 241 // Returns true if the bit corresponding to the given state enum is 1. | 241 // Returns true if the bit corresponding to the given state enum is 1. |
| 242 bool HasState(ui::AXState state_enum) const; | 242 bool HasState(ui::AXState state_enum) const; |
| 243 | 243 |
| 244 // Returns true if this node is an cell or an table header. |
| 245 bool IsCellOrTableHeaderRole() const; |
| 246 |
| 244 // Returns true if this node is an editable text field of any kind. | 247 // Returns true if this node is an editable text field of any kind. |
| 245 bool IsEditableText() const; | 248 bool IsEditableText() const; |
| 246 | 249 |
| 247 // True if this is a web area, and its grandparent is a presentational iframe. | 250 // True if this is a web area, and its grandparent is a presentational iframe. |
| 248 bool IsWebAreaForPresentationalIframe() const; | 251 bool IsWebAreaForPresentationalIframe() const; |
| 249 | 252 |
| 250 // Append the text from this node and its children. | 253 // Append the text from this node and its children. |
| 251 std::string GetTextRecursive() const; | 254 std::string GetTextRecursive() const; |
| 252 | 255 |
| 253 protected: | 256 protected: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 266 | 269 |
| 267 std::string name_; | 270 std::string name_; |
| 268 std::string value_; | 271 std::string value_; |
| 269 | 272 |
| 270 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 273 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 271 }; | 274 }; |
| 272 | 275 |
| 273 } // namespace content | 276 } // namespace content |
| 274 | 277 |
| 275 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 278 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |