| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 const ui::AXNodeData& GetData() const override; | 384 const ui::AXNodeData& GetData() const override; |
| 385 gfx::NativeWindow GetTopLevelWidget() override; | 385 gfx::NativeWindow GetTopLevelWidget() override; |
| 386 gfx::NativeViewAccessible GetParent() override; | 386 gfx::NativeViewAccessible GetParent() override; |
| 387 int GetChildCount() override; | 387 int GetChildCount() override; |
| 388 gfx::NativeViewAccessible ChildAtIndex(int index) override; | 388 gfx::NativeViewAccessible ChildAtIndex(int index) override; |
| 389 gfx::Rect GetScreenBoundsRect() const override; | 389 gfx::Rect GetScreenBoundsRect() const override; |
| 390 gfx::NativeViewAccessible HitTestSync(int x, int y) override; | 390 gfx::NativeViewAccessible HitTestSync(int x, int y) override; |
| 391 gfx::NativeViewAccessible GetFocus() override; | 391 gfx::NativeViewAccessible GetFocus() override; |
| 392 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; | 392 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; |
| 393 bool AccessibilityPerformAction(const ui::AXActionData& data) override; | 393 bool AccessibilityPerformAction(const ui::AXActionData& data) override; |
| 394 bool ShouldIgnoreHoveredStateForTesting() override; | |
| 395 | 394 |
| 396 protected: | 395 protected: |
| 397 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance; | 396 using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance; |
| 398 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>; | 397 using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>; |
| 399 | 398 |
| 400 BrowserAccessibility(); | 399 BrowserAccessibility(); |
| 401 | 400 |
| 402 // The manager of this tree of accessibility objects. | 401 // The manager of this tree of accessibility objects. |
| 403 BrowserAccessibilityManager* manager_; | 402 BrowserAccessibilityManager* manager_; |
| 404 | 403 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 427 // bounds, but "virtual" elements in the accessibility tree that don't | 426 // bounds, but "virtual" elements in the accessibility tree that don't |
| 428 // correspond to a layed-out element sometimes don't have bounds. | 427 // correspond to a layed-out element sometimes don't have bounds. |
| 429 void FixEmptyBounds(gfx::RectF* bounds) const; | 428 void FixEmptyBounds(gfx::RectF* bounds) const; |
| 430 | 429 |
| 431 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 430 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 432 }; | 431 }; |
| 433 | 432 |
| 434 } // namespace content | 433 } // namespace content |
| 435 | 434 |
| 436 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 435 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |