| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Focuses or unfocuses a View. | 39 // Focuses or unfocuses a View. |
| 40 bool SetFocused(bool focused); | 40 bool SetFocused(bool focused); |
| 41 | 41 |
| 42 // ui::AXPlatformNodeDelegate | 42 // ui::AXPlatformNodeDelegate |
| 43 const ui::AXNodeData& GetData() const override; | 43 const ui::AXNodeData& GetData() const override; |
| 44 int GetChildCount() override; | 44 int GetChildCount() override; |
| 45 gfx::NativeViewAccessible ChildAtIndex(int index) override; | 45 gfx::NativeViewAccessible ChildAtIndex(int index) override; |
| 46 gfx::NativeWindow GetTopLevelWidget() override; | 46 gfx::NativeWindow GetTopLevelWidget() override; |
| 47 gfx::NativeViewAccessible GetParent() override; | 47 gfx::NativeViewAccessible GetParent() override; |
| 48 gfx::Vector2d GetGlobalCoordinateOffset() override; | 48 gfx::Vector2d GetGlobalCoordinateOffset() override; |
| 49 gfx::Rect GetScreenBoundsRect() const override; |
| 49 gfx::NativeViewAccessible HitTestSync(int x, int y) override; | 50 gfx::NativeViewAccessible HitTestSync(int x, int y) override; |
| 50 gfx::NativeViewAccessible GetFocus() override; | 51 gfx::NativeViewAccessible GetFocus() override; |
| 51 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; | 52 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; |
| 52 bool AccessibilityPerformAction(const ui::AXActionData& data) override; | 53 bool AccessibilityPerformAction(const ui::AXActionData& data) override; |
| 53 void DoDefaultAction() override; | 54 void DoDefaultAction() override; |
| 54 | 55 |
| 55 // WidgetObserver | 56 // WidgetObserver |
| 56 void OnWidgetDestroying(Widget* widget) override; | 57 void OnWidgetDestroying(Widget* widget) override; |
| 57 | 58 |
| 58 Widget* parent_widget() const { return parent_widget_; } | 59 Widget* parent_widget() const { return parent_widget_; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 77 ui::AXPlatformNode* ax_node_; | 78 ui::AXPlatformNode* ax_node_; |
| 78 | 79 |
| 79 mutable ui::AXNodeData data_; | 80 mutable ui::AXNodeData data_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase); | 82 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace views | 85 } // namespace views |
| 85 | 86 |
| 86 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 87 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| OLD | NEW |