| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 324 |
| 325 // Returns true if the caret is active on this object. | 325 // Returns true if the caret is active on this object. |
| 326 bool HasCaret() const; | 326 bool HasCaret() const; |
| 327 | 327 |
| 328 // True if this is a web area, and its grandparent is a presentational iframe. | 328 // True if this is a web area, and its grandparent is a presentational iframe. |
| 329 bool IsWebAreaForPresentationalIframe() const; | 329 bool IsWebAreaForPresentationalIframe() const; |
| 330 | 330 |
| 331 virtual bool IsClickable() const; | 331 virtual bool IsClickable() const; |
| 332 bool IsControl() const; | 332 bool IsControl() const; |
| 333 bool IsMenuRelated() const; | 333 bool IsMenuRelated() const; |
| 334 bool IsRangeControl() const; | 334 bool IsNativeTextControl() const; |
| 335 bool IsSimpleTextControl() const; | 335 bool IsSimpleTextControl() const; |
| 336 // Indicates if this object is at the root of a rich edit text control. | 336 // Indicates if this object is at the root of a rich edit text control. |
| 337 bool IsRichTextControl() const; | 337 bool IsRichTextControl() const; |
| 338 | 338 |
| 339 // If an object is focusable but has no accessible name, use this | 339 // If an object is focusable but has no accessible name, use this |
| 340 // to compute a name from its descendants. | 340 // to compute a name from its descendants. |
| 341 std::string ComputeAccessibleNameFromDescendants(); | 341 std::string ComputeAccessibleNameFromDescendants(); |
| 342 | 342 |
| 343 protected: | 343 protected: |
| 344 BrowserAccessibility(); | 344 BrowserAccessibility(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 369 // its nearest scrollable ancestor) to local bounds (which are relative | 369 // its nearest scrollable ancestor) to local bounds (which are relative |
| 370 // to the top of the web accessibility tree). | 370 // to the top of the web accessibility tree). |
| 371 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; | 371 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; |
| 372 | 372 |
| 373 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 373 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 374 }; | 374 }; |
| 375 | 375 |
| 376 } // namespace content | 376 } // namespace content |
| 377 | 377 |
| 378 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 378 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |