| 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_action_data.h" | 10 #include "ui/accessibility/ax_action_data.h" |
| 11 #include "ui/accessibility/ax_node_data.h" | 11 #include "ui/accessibility/ax_node_data.h" |
| 12 #include "ui/accessibility/platform/ax_platform_node.h" | 12 #include "ui/accessibility/platform/ax_platform_node.h" |
| 13 #include "ui/accessibility/platform/ax_platform_node_delegate.h" | 13 #include "ui/accessibility/platform/ax_platform_node_delegate.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 #include "ui/views/views_export.h" | 15 #include "ui/views/views_export.h" |
| 16 #include "ui/views/widget/widget_observer.h" | 16 #include "ui/views/widget/widget_observer.h" |
| 17 | 17 |
| 18 // Set PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL if this platform has a | 18 // Set PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL if this platform has a |
| 19 // specific implementation of NativeViewAccessibility::Create(). | 19 // specific implementation of NativeViewAccessibility::Create(). |
| 20 #undef PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL | 20 #undef PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL |
| 21 | 21 |
| 22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
| 23 #define PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL 1 | 23 #define PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL 1 |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #if defined(OS_MACOSX) |
| 27 #define PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL 1 |
| 28 #endif |
| 29 |
| 26 #if defined(OS_LINUX) && defined(USE_X11) && !defined(OS_CHROMEOS) | 30 #if defined(OS_LINUX) && defined(USE_X11) && !defined(OS_CHROMEOS) |
| 27 #define PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL 1 | 31 #define PLATFORM_HAS_NATIVE_VIEW_ACCESSIBILITY_IMPL 1 |
| 28 #endif | 32 #endif |
| 29 | 33 |
| 30 namespace views { | 34 namespace views { |
| 31 | 35 |
| 32 class View; | 36 class View; |
| 33 class Widget; | 37 class Widget; |
| 34 | 38 |
| 35 class VIEWS_EXPORT NativeViewAccessibility | 39 class VIEWS_EXPORT NativeViewAccessibility |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 ui::AXPlatformNode* ax_node_; | 92 ui::AXPlatformNode* ax_node_; |
| 89 | 93 |
| 90 ui::AXNodeData data_; | 94 ui::AXNodeData data_; |
| 91 | 95 |
| 92 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); | 96 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibility); |
| 93 }; | 97 }; |
| 94 | 98 |
| 95 } // namespace views | 99 } // namespace views |
| 96 | 100 |
| 97 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ | 101 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_H_ |
| OLD | NEW |