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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 bool IsWebAreaForPresentationalIframe() const; | 371 bool IsWebAreaForPresentationalIframe() const; |
372 | 372 |
373 virtual bool IsClickable() const; | 373 virtual bool IsClickable() const; |
374 bool IsControl() const; | 374 bool IsControl() const; |
375 bool IsMenuRelated() const; | 375 bool IsMenuRelated() const; |
376 bool IsNativeTextControl() const; | 376 bool IsNativeTextControl() const; |
377 bool IsSimpleTextControl() const; | 377 bool IsSimpleTextControl() const; |
378 // Indicates if this object is at the root of a rich edit text control. | 378 // Indicates if this object is at the root of a rich edit text control. |
379 bool IsRichTextControl() const; | 379 bool IsRichTextControl() const; |
380 | 380 |
| 381 // Return true if the accessible name was explicitly set to "" by the author |
| 382 bool HasExplicitlyEmptyName() const; |
| 383 |
381 // If an object is focusable but has no accessible name, use this | 384 // If an object is focusable but has no accessible name, use this |
382 // to compute a name from its descendants. | 385 // to compute a name from its descendants. |
383 std::string ComputeAccessibleNameFromDescendants(); | 386 std::string ComputeAccessibleNameFromDescendants(); |
384 | 387 |
385 // Creates a text position rooted at this object. | 388 // Creates a text position rooted at this object. |
386 AXPlatformPosition::AXPositionInstance CreatePositionAt( | 389 AXPlatformPosition::AXPositionInstance CreatePositionAt( |
387 int offset, | 390 int offset, |
388 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; | 391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; |
389 | 392 |
390 // Gets the text offsets where new lines start. | 393 // Gets the text offsets where new lines start. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 // bounds, but "virtual" elements in the accessibility tree that don't | 439 // bounds, but "virtual" elements in the accessibility tree that don't |
437 // correspond to a layed-out element sometimes don't have bounds. | 440 // correspond to a layed-out element sometimes don't have bounds. |
438 void FixEmptyBounds(gfx::RectF* bounds) const; | 441 void FixEmptyBounds(gfx::RectF* bounds) const; |
439 | 442 |
440 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
441 }; | 444 }; |
442 | 445 |
443 } // namespace content | 446 } // namespace content |
444 | 447 |
445 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |