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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 bool* is_defined, | 321 bool* is_defined, |
322 bool* is_mixed) const; | 322 bool* is_mixed) const; |
323 | 323 |
324 base::string16 GetFontFamily() const; | 324 base::string16 GetFontFamily() const; |
325 base::string16 GetLanguage() const; | 325 base::string16 GetLanguage() const; |
326 virtual base::string16 GetText() const; | 326 virtual base::string16 GetText() const; |
327 | 327 |
328 // Returns true if the bit corresponding to the given state enum is 1. | 328 // Returns true if the bit corresponding to the given state enum is 1. |
329 bool HasState(ui::AXState state_enum) const; | 329 bool HasState(ui::AXState state_enum) const; |
330 | 330 |
331 // Returns true if this node is an cell or an table header. | 331 // Returns true if this node is a cell or a table header. |
332 bool IsCellOrTableHeaderRole() const; | 332 bool IsCellOrTableHeaderRole() const; |
333 | 333 |
| 334 // Returns true if this node is a table, a grid or a treegrid. |
| 335 bool IsTableOrGridOrTreeGridRole() const; |
| 336 |
334 // Returns true if the caret is active on this object. | 337 // Returns true if the caret is active on this object. |
335 bool HasCaret() const; | 338 bool HasCaret() const; |
336 | 339 |
337 // True if this is a web area, and its grandparent is a presentational iframe. | 340 // True if this is a web area, and its grandparent is a presentational iframe. |
338 bool IsWebAreaForPresentationalIframe() const; | 341 bool IsWebAreaForPresentationalIframe() const; |
339 | 342 |
340 virtual bool IsClickable() const; | 343 virtual bool IsClickable() const; |
341 bool IsControl() const; | 344 bool IsControl() const; |
342 bool IsMenuRelated() const; | 345 bool IsMenuRelated() const; |
343 bool IsNativeTextControl() const; | 346 bool IsNativeTextControl() const; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // bounds, but "virtual" elements in the accessibility tree that don't | 379 // bounds, but "virtual" elements in the accessibility tree that don't |
377 // correspond to a layed-out element sometimes don't have bounds. | 380 // correspond to a layed-out element sometimes don't have bounds. |
378 void FixEmptyBounds(gfx::RectF* bounds) const; | 381 void FixEmptyBounds(gfx::RectF* bounds) const; |
379 | 382 |
380 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 383 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
381 }; | 384 }; |
382 | 385 |
383 } // namespace content | 386 } // namespace content |
384 | 387 |
385 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 388 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |