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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 std::string ComputeAccessibleNameFromDescendants() const; | 386 std::string ComputeAccessibleNameFromDescendants() const; |
387 | 387 |
388 // Creates a text position rooted at this object. | 388 // Creates a text position rooted at this object. |
389 AXPlatformPosition::AXPositionInstance CreatePositionAt( | 389 AXPlatformPosition::AXPositionInstance CreatePositionAt( |
390 int offset, | 390 int offset, |
391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; | 391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; |
392 | 392 |
393 // Gets the text offsets where new lines start. | 393 // Gets the text offsets where new lines start. |
394 std::vector<int> GetLineStartOffsets() const; | 394 std::vector<int> GetLineStartOffsets() const; |
395 | 395 |
| 396 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); |
| 397 |
396 // AXPlatformNodeDelegate. | 398 // AXPlatformNodeDelegate. |
397 const ui::AXNodeData& GetData() const override; | 399 const ui::AXNodeData& GetData() const override; |
398 gfx::NativeWindow GetTopLevelWidget() override; | 400 gfx::NativeWindow GetTopLevelWidget() override; |
399 gfx::NativeViewAccessible GetParent() override; | 401 gfx::NativeViewAccessible GetParent() override; |
400 int GetChildCount() override; | 402 int GetChildCount() override; |
401 gfx::NativeViewAccessible ChildAtIndex(int index) override; | 403 gfx::NativeViewAccessible ChildAtIndex(int index) override; |
402 gfx::Rect GetScreenBoundsRect() const override; | 404 gfx::Rect GetScreenBoundsRect() const override; |
403 gfx::NativeViewAccessible HitTestSync(int x, int y) override; | 405 gfx::NativeViewAccessible HitTestSync(int x, int y) override; |
404 gfx::NativeViewAccessible GetFocus() override; | 406 gfx::NativeViewAccessible GetFocus() override; |
405 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; | 407 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // bounds, but "virtual" elements in the accessibility tree that don't | 441 // bounds, but "virtual" elements in the accessibility tree that don't |
440 // correspond to a layed-out element sometimes don't have bounds. | 442 // correspond to a layed-out element sometimes don't have bounds. |
441 void FixEmptyBounds(gfx::RectF* bounds) const; | 443 void FixEmptyBounds(gfx::RectF* bounds) const; |
442 | 444 |
443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 445 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
444 }; | 446 }; |
445 | 447 |
446 } // namespace content | 448 } // namespace content |
447 | 449 |
448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 450 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |