| 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_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "ui/accessibility/ax_node_data.h" | 10 #include "ui/accessibility/ax_node_data.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Call Destroy rather than deleting this, because the subclass may | 42 // Call Destroy rather than deleting this, because the subclass may |
| 43 // use reference counting. | 43 // use reference counting. |
| 44 virtual void Destroy(); | 44 virtual void Destroy(); |
| 45 | 45 |
| 46 void NotifyAccessibilityEvent(ui::AXEvent event_type); | 46 void NotifyAccessibilityEvent(ui::AXEvent event_type); |
| 47 | 47 |
| 48 // ui::AXPlatformNodeDelegate | 48 // ui::AXPlatformNodeDelegate |
| 49 const ui::AXNodeData& GetData() override; | 49 const ui::AXNodeData& GetData() override; |
| 50 int GetChildCount() override; | 50 int GetChildCount() override; |
| 51 gfx::NativeViewAccessible ChildAtIndex(int index) override; | 51 gfx::NativeViewAccessible ChildAtIndex(int index) override; |
| 52 gfx::NativeWindow GetTopLevelWidget() override; |
| 52 gfx::NativeViewAccessible GetParent() override; | 53 gfx::NativeViewAccessible GetParent() override; |
| 53 gfx::Vector2d GetGlobalCoordinateOffset() override; | 54 gfx::Vector2d GetGlobalCoordinateOffset() override; |
| 54 gfx::NativeViewAccessible HitTestSync(int x, int y) override; | 55 gfx::NativeViewAccessible HitTestSync(int x, int y) override; |
| 55 gfx::NativeViewAccessible GetFocus() override; | 56 gfx::NativeViewAccessible GetFocus() override; |
| 56 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; | 57 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; |
| 57 void DoDefaultAction() override; | 58 void DoDefaultAction() override; |
| 58 bool SetStringValue(const base::string16& new_value) override; | 59 bool SetStringValue(const base::string16& new_value) override; |
| 59 | 60 |
| 60 // WidgetObserver | 61 // WidgetObserver |
| 61 void OnWidgetDestroying(Widget* widget) override; | 62 void OnWidgetDestroying(Widget* widget) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 83 ui::AXPlatformNode* ax_node_; | 84 ui::AXPlatformNode* ax_node_; |
| 84 | 85 |
| 85 ui::AXNodeData data_; | 86 ui::AXNodeData data_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); | 88 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace views | 91 } // namespace views |
| 91 | 92 |
| 92 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ | 93 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ |
| OLD | NEW |