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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 // aria-expanded (expandable) | 238 // aria-expanded (expandable) |
239 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state | 239 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state |
240 // aria-checked (checkable) -- supports 4th "mixed state" | 240 // aria-checked (checkable) -- supports 4th "mixed state" |
241 bool GetAriaTristate(const char* attr_name, | 241 bool GetAriaTristate(const char* attr_name, |
242 bool* is_defined, | 242 bool* is_defined, |
243 bool* is_mixed) const; | 243 bool* is_mixed) const; |
244 | 244 |
245 // Returns true if the bit corresponding to the given state enum is 1. | 245 // Returns true if the bit corresponding to the given state enum is 1. |
246 bool HasState(ui::AXState state_enum) const; | 246 bool HasState(ui::AXState state_enum) const; |
247 | 247 |
248 // Returns true if this node is an cell or an table header. | 248 // Returns true if a role is an cell or an table header. |
249 bool IsCellOrTableHeaderRole() const; | 249 bool IsCellOrTableHeaderRole(int32 role) const; |
250 | 250 |
251 // Returns true if this node is an editable text field of any kind. | 251 // Returns true if this node is an editable text field of any kind. |
252 bool IsEditableText() const; | 252 bool IsEditableText() const; |
253 | 253 |
254 // True if this is a web area, and its grandparent is a presentational iframe. | 254 // True if this is a web area, and its grandparent is a presentational iframe. |
255 bool IsWebAreaForPresentationalIframe() const; | 255 bool IsWebAreaForPresentationalIframe() const; |
256 | 256 |
257 protected: | 257 protected: |
258 BrowserAccessibility(); | 258 BrowserAccessibility(); |
259 | 259 |
(...skipping 17 matching lines...) Expand all Loading... |
277 // its nearest scrollable ancestor) to local bounds (which are relative | 277 // its nearest scrollable ancestor) to local bounds (which are relative |
278 // to the top of the web accessibility tree). | 278 // to the top of the web accessibility tree). |
279 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; | 279 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; |
280 | 280 |
281 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 281 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
282 }; | 282 }; |
283 | 283 |
284 } // namespace content | 284 } // namespace content |
285 | 285 |
286 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 286 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |