| OLD | NEW |
| 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> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 COM_INTERFACE_ENTRY(IAccessible) | 47 COM_INTERFACE_ENTRY(IAccessible) |
| 48 COM_INTERFACE_ENTRY(IAccessible2) | 48 COM_INTERFACE_ENTRY(IAccessible2) |
| 49 COM_INTERFACE_ENTRY(IAccessible2_2) | 49 COM_INTERFACE_ENTRY(IAccessible2_2) |
| 50 COM_INTERFACE_ENTRY(IAccessibleText) | 50 COM_INTERFACE_ENTRY(IAccessibleText) |
| 51 COM_INTERFACE_ENTRY(IServiceProvider) | 51 COM_INTERFACE_ENTRY(IServiceProvider) |
| 52 END_COM_MAP() | 52 END_COM_MAP() |
| 53 | 53 |
| 54 ~AXPlatformNodeWin() override; | 54 ~AXPlatformNodeWin() override; |
| 55 | 55 |
| 56 // AXPlatformNode overrides. | 56 // AXPlatformNode overrides. |
| 57 void Destroy() override; | |
| 58 gfx::NativeViewAccessible GetNativeViewAccessible() override; | 57 gfx::NativeViewAccessible GetNativeViewAccessible() override; |
| 59 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; | 58 void NotifyAccessibilityEvent(ui::AXEvent event_type) override; |
| 60 | 59 |
| 61 // AXPlatformNodeBase overrides. | 60 // AXPlatformNodeBase overrides. |
| 61 void Destroy() override; |
| 62 int GetIndexInParent() override; | 62 int GetIndexInParent() override; |
| 63 | 63 |
| 64 // | 64 // |
| 65 // IAccessible methods. | 65 // IAccessible methods. |
| 66 // | 66 // |
| 67 | 67 |
| 68 // Retrieves the child element or child object at a given point on the screen. | 68 // Retrieves the child element or child object at a given point on the screen. |
| 69 STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child) override; | 69 STDMETHODIMP accHitTest(LONG x_left, LONG y_top, VARIANT* child) override; |
| 70 | 70 |
| 71 // Performs the object's default action. | 71 // Performs the object's default action. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // IServiceProvider methods. | 260 // IServiceProvider methods. |
| 261 // | 261 // |
| 262 | 262 |
| 263 STDMETHODIMP QueryService(REFGUID guidService, | 263 STDMETHODIMP QueryService(REFGUID guidService, |
| 264 REFIID riid, | 264 REFIID riid, |
| 265 void** object) override; | 265 void** object) override; |
| 266 | 266 |
| 267 protected: | 267 protected: |
| 268 AXPlatformNodeWin(); | 268 AXPlatformNodeWin(); |
| 269 | 269 |
| 270 // AXPlatformNodeBase overrides. |
| 271 void Dispose() override; |
| 272 |
| 270 private: | 273 private: |
| 271 bool IsValidId(const VARIANT& child) const; | 274 bool IsValidId(const VARIANT& child) const; |
| 272 int MSAARole(); | 275 int MSAARole(); |
| 273 int MSAAState(); | 276 int MSAAState(); |
| 274 int MSAAEvent(ui::AXEvent event); | 277 int MSAAEvent(ui::AXEvent event); |
| 275 | 278 |
| 276 HRESULT GetStringAttributeAsBstr( | 279 HRESULT GetStringAttributeAsBstr( |
| 277 ui::AXStringAttribute attribute, | 280 ui::AXStringAttribute attribute, |
| 278 BSTR* value_bstr) const; | 281 BSTR* value_bstr) const; |
| 279 | 282 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 295 // return the offset of that boundary. | 298 // return the offset of that boundary. |
| 296 LONG FindBoundary(const base::string16& text, | 299 LONG FindBoundary(const base::string16& text, |
| 297 IA2TextBoundaryType ia2_boundary, | 300 IA2TextBoundaryType ia2_boundary, |
| 298 LONG start_offset, | 301 LONG start_offset, |
| 299 ui::TextBoundaryDirection direction); | 302 ui::TextBoundaryDirection direction); |
| 300 }; | 303 }; |
| 301 | 304 |
| 302 } // namespace ui | 305 } // namespace ui |
| 303 | 306 |
| 304 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 307 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
| OLD | NEW |