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

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

Issue 2766463002: DLL Export AXPlatformNodeWin. (Closed)
Patch Set: use NON_EXPORTED_BASE macro \./ Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WIN_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <oleacc.h> 10 #include <oleacc.h>
11 11
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
scottmg 2017/03/23 05:00:10 #include "base/compiler_specific.h"
dougt 2017/03/23 14:22:40 Done.
13 #include "third_party/iaccessible2/ia2_api_all.h" 13 #include "third_party/iaccessible2/ia2_api_all.h"
14 #include "ui/accessibility/ax_export.h" 14 #include "ui/accessibility/ax_export.h"
15 #include "ui/accessibility/ax_text_utils.h" 15 #include "ui/accessibility/ax_text_utils.h"
16 #include "ui/accessibility/platform/ax_platform_node_base.h" 16 #include "ui/accessibility/platform/ax_platform_node_base.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 // A simple interface for a class that wants to be notified when IAccessible2 20 // A simple interface for a class that wants to be notified when IAccessible2
21 // is used by a client, a strong indication that full accessibility support 21 // is used by a client, a strong indication that full accessibility support
22 // should be enabled. 22 // should be enabled.
23 class AX_EXPORT IAccessible2UsageObserver { 23 class AX_EXPORT IAccessible2UsageObserver {
24 public: 24 public:
25 IAccessible2UsageObserver(); 25 IAccessible2UsageObserver();
26 virtual ~IAccessible2UsageObserver(); 26 virtual ~IAccessible2UsageObserver();
27 virtual void OnIAccessible2Used() = 0; 27 virtual void OnIAccessible2Used() = 0;
28 }; 28 };
29 29
30 // Get an observer list that allows modules across the codebase to 30 // Get an observer list that allows modules across the codebase to
31 // listen to when usage of IAccessible2 is detected. 31 // listen to when usage of IAccessible2 is detected.
32 extern AX_EXPORT base::ObserverList<IAccessible2UsageObserver>& 32 extern AX_EXPORT base::ObserverList<IAccessible2UsageObserver>&
33 GetIAccessible2UsageObserverList(); 33 GetIAccessible2UsageObserverList();
34 34
35 class __declspec(uuid("26f5641a-246d-457b-a96d-07f3fae6acf2")) 35 class AX_EXPORT __declspec(uuid("26f5641a-246d-457b-a96d-07f3fae6acf2"))
36 AXPlatformNodeWin 36 AXPlatformNodeWin
37 : public CComObjectRootEx<CComMultiThreadModel>, 37 : public NON_EXPORTED_BASE(CComObjectRootEx<CComMultiThreadModel>),
38 public IDispatchImpl<IAccessible2_2, &IID_IAccessible2, 38 public IDispatchImpl<IAccessible2_2,
39 &LIBID_IAccessible2Lib>, 39 &IID_IAccessible2,
40 public IAccessibleText, 40 &LIBID_IAccessible2Lib>,
41 public IServiceProvider, 41 public IAccessibleText,
42 public AXPlatformNodeBase { 42 public IServiceProvider,
43 public NON_EXPORTED_BASE(AXPlatformNodeBase) {
43 public: 44 public:
44 BEGIN_COM_MAP(AXPlatformNodeWin) 45 BEGIN_COM_MAP(AXPlatformNodeWin)
45 COM_INTERFACE_ENTRY2(IDispatch, IAccessible2_2) 46 COM_INTERFACE_ENTRY2(IDispatch, IAccessible2_2)
46 COM_INTERFACE_ENTRY(AXPlatformNodeWin) 47 COM_INTERFACE_ENTRY(AXPlatformNodeWin)
47 COM_INTERFACE_ENTRY(IAccessible) 48 COM_INTERFACE_ENTRY(IAccessible)
48 COM_INTERFACE_ENTRY(IAccessible2) 49 COM_INTERFACE_ENTRY(IAccessible2)
49 COM_INTERFACE_ENTRY(IAccessible2_2) 50 COM_INTERFACE_ENTRY(IAccessible2_2)
50 COM_INTERFACE_ENTRY(IAccessibleText) 51 COM_INTERFACE_ENTRY(IAccessibleText)
51 COM_INTERFACE_ENTRY(IServiceProvider) 52 COM_INTERFACE_ENTRY(IServiceProvider)
52 END_COM_MAP() 53 END_COM_MAP()
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // return the offset of that boundary. 299 // return the offset of that boundary.
299 LONG FindBoundary(const base::string16& text, 300 LONG FindBoundary(const base::string16& text,
300 IA2TextBoundaryType ia2_boundary, 301 IA2TextBoundaryType ia2_boundary,
301 LONG start_offset, 302 LONG start_offset,
302 ui::TextBoundaryDirection direction); 303 ui::TextBoundaryDirection direction);
303 }; 304 };
304 305
305 } // namespace ui 306 } // namespace ui
306 307
307 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ 308 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698