| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 gfx::NativeWindow GetTopLevelWidget() override; | 52 gfx::NativeWindow GetTopLevelWidget() override; |
| 53 gfx::NativeViewAccessible GetParent() override; | 53 gfx::NativeViewAccessible GetParent() override; |
| 54 gfx::Vector2d GetGlobalCoordinateOffset() override; | 54 gfx::Vector2d GetGlobalCoordinateOffset() override; |
| 55 gfx::NativeViewAccessible HitTestSync(int x, int y) override; | 55 gfx::NativeViewAccessible HitTestSync(int x, int y) override; |
| 56 gfx::NativeViewAccessible GetFocus() override; | 56 gfx::NativeViewAccessible GetFocus() override; |
| 57 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; | 57 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; |
| 58 void DoDefaultAction() override; | 58 void DoDefaultAction() override; |
| 59 bool SetStringValue(const base::string16& new_value, | 59 bool SetStringValue(const base::string16& new_value, |
| 60 bool clear_first) override; | 60 bool clear_first) override; |
| 61 bool CanSetStringValue() override; | 61 bool CanSetStringValue() override; |
| 62 bool SetFocused(bool focused) override; |
| 62 | 63 |
| 63 // WidgetObserver | 64 // WidgetObserver |
| 64 void OnWidgetDestroying(Widget* widget) override; | 65 void OnWidgetDestroying(Widget* widget) override; |
| 65 | 66 |
| 66 Widget* parent_widget() const { return parent_widget_; } | 67 Widget* parent_widget() const { return parent_widget_; } |
| 67 void SetParentWidget(Widget* parent_widget); | 68 void SetParentWidget(Widget* parent_widget); |
| 68 | 69 |
| 69 protected: | 70 protected: |
| 70 NativeViewAccessibility(View* view); | 71 NativeViewAccessibility(View* view); |
| 71 ~NativeViewAccessibility() override; | 72 ~NativeViewAccessibility() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 86 ui::AXPlatformNode* ax_node_; | 87 ui::AXPlatformNode* ax_node_; |
| 87 | 88 |
| 88 ui::AXNodeData data_; | 89 ui::AXNodeData data_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); | 91 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace views | 94 } // namespace views |
| 94 | 95 |
| 95 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ | 96 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ |
| OLD | NEW |