| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 bool IsRichTextControl() const; | 364 bool IsRichTextControl() const; |
| 365 | 365 |
| 366 // Return true if the accessible name was explicitly set to "" by the author | 366 // Return true if the accessible name was explicitly set to "" by the author |
| 367 bool HasExplicitlyEmptyName() const; | 367 bool HasExplicitlyEmptyName() const; |
| 368 | 368 |
| 369 // If an object is focusable but has no accessible name, use this | 369 // If an object is focusable but has no accessible name, use this |
| 370 // to compute a name from its descendants. | 370 // to compute a name from its descendants. |
| 371 std::string ComputeAccessibleNameFromDescendants() const; | 371 std::string ComputeAccessibleNameFromDescendants() const; |
| 372 | 372 |
| 373 // Creates a text position rooted at this object. | 373 // Creates a text position rooted at this object. |
| 374 AXPlatformPosition::AXPositionInstance CreatePositionAt( | 374 AXPlatformPosition::ConcreteInstance CreatePositionAt( |
| 375 int offset, | 375 int offset, |
| 376 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; | 376 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; |
| 377 | 377 |
| 378 // Gets the text offsets where new lines start. | 378 // Gets the text offsets where new lines start. |
| 379 std::vector<int> GetLineStartOffsets() const; | 379 std::vector<int> GetLineStartOffsets() const; |
| 380 | 380 |
| 381 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); | 381 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); |
| 382 | 382 |
| 383 // AXPlatformNodeDelegate. | 383 // AXPlatformNodeDelegate. |
| 384 const ui::AXNodeData& GetData() const override; | 384 const ui::AXNodeData& GetData() const override; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 414 // special character in the place of every embedded object instead of its | 414 // special character in the place of every embedded object instead of its |
| 415 // text, depending on the platform. | 415 // text, depending on the platform. |
| 416 base::string16 GetInnerText() const; | 416 base::string16 GetInnerText() const; |
| 417 | 417 |
| 418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 } // namespace content | 421 } // namespace content |
| 422 | 422 |
| 423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |