Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: ui/accessibility/platform/ax_platform_node.h

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/accessibility/ax_enums.h"
10 #include "ui/accessibility/ax_export.h" 9 #include "ui/accessibility/ax_export.h"
11 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
12 11
13 // Set PLATFORM_HAS_AX_PLATFORM_NODE_IMPL if this platform has a specific 12 // Set PLATFORM_HAS_AX_PLATFORM_NODE_IMPL if this platform has a specific
14 // implementation of AxPlatfromNode::Create(). 13 // implementation of AxPlatfromNode::Create().
15 #undef PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 14 #undef PLATFORM_HAS_AX_PLATFORM_NODE_IMPL
16 15
17 #if defined(OS_WIN) 16 #if defined(OS_WIN)
18 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1 17 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1
19 #endif 18 #endif
20 19
21 #if defined(OS_MACOSX) 20 #if defined(OS_MACOSX)
22 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1 21 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1
23 #endif 22 #endif
24 23
25 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11) 24 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11)
26 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1 25 #define PLATFORM_HAS_AX_PLATFORM_NODE_IMPL 1
27 #endif 26 #endif
28 27
29 namespace ui { 28 namespace ui {
30 29
30 enum AXEvent : int;
31 class AXPlatformNodeDelegate; 31 class AXPlatformNodeDelegate;
32 32
33 // AXPlatformNode is the abstract base class for an implementation of 33 // AXPlatformNode is the abstract base class for an implementation of
34 // native accessibility APIs on supported platforms (e.g. Windows, Mac OS X). 34 // native accessibility APIs on supported platforms (e.g. Windows, Mac OS X).
35 // An object that wants to be accessible can derive from AXPlatformNodeDelegate 35 // An object that wants to be accessible can derive from AXPlatformNodeDelegate
36 // and then call AXPlatformNode::Create. The delegate implementation should 36 // and then call AXPlatformNode::Create. The delegate implementation should
37 // own the AXPlatformNode instance (or otherwise manage its lifecycle). 37 // own the AXPlatformNode instance (or otherwise manage its lifecycle).
38 class AX_EXPORT AXPlatformNode { 38 class AX_EXPORT AXPlatformNode {
39 public: 39 public:
40 // Create an appropriate platform-specific instance. The delegate owns the 40 // Create an appropriate platform-specific instance. The delegate owns the
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual ~AXPlatformNode(); 75 virtual ~AXPlatformNode();
76 76
77 AXPlatformNode* GetFromUniqueId(int32_t unique_id); 77 AXPlatformNode* GetFromUniqueId(int32_t unique_id);
78 78
79 int32_t unique_id_; 79 int32_t unique_id_;
80 }; 80 };
81 81
82 } // namespace ui 82 } // namespace ui
83 83
84 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_ 84 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_H_
OLDNEW
« no previous file with comments | « ui/accessibility/ax_view_state.cc ('k') | ui/accessibility/platform/ax_platform_node_auralinux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698