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

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

Issue 2943243002: Forward BrowserAccessibility get_accState to AXPlatformNode. (Closed)
Patch Set: Mask out focus changes when determining if we should broadcast EVENT_OBJECT_STATECHANGE Created 3 years, 5 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 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // 261 //
262 // IServiceProvider methods. 262 // IServiceProvider methods.
263 // 263 //
264 264
265 STDMETHODIMP QueryService(REFGUID guidService, 265 STDMETHODIMP QueryService(REFGUID guidService,
266 REFIID riid, 266 REFIID riid,
267 void** object) override; 267 void** object) override;
268 268
269 protected: 269 protected:
270 AXPlatformNodeWin(); 270 AXPlatformNodeWin();
271 int MSAAState();
271 272
272 // AXPlatformNodeBase overrides. 273 // AXPlatformNodeBase overrides.
273 void Dispose() override; 274 void Dispose() override;
274 275
275 private: 276 private:
276 int MSAARole(); 277 int MSAARole();
277 std::string StringOverrideForMSAARole(); 278 std::string StringOverrideForMSAARole();
278 279
279 int MSAAState();
280 int MSAAEvent(ui::AXEvent event); 280 int MSAAEvent(ui::AXEvent event);
281 bool ShouldNodeHaveReadonlyState(const AXNodeData& data) const;
282 bool ShouldNodeHaveFocusableState(const AXNodeData& data) const;
281 283
282 HRESULT GetStringAttributeAsBstr( 284 HRESULT GetStringAttributeAsBstr(
283 ui::AXStringAttribute attribute, 285 ui::AXStringAttribute attribute,
284 BSTR* value_bstr) const; 286 BSTR* value_bstr) const;
285 287
286 void AddAlertTarget(); 288 void AddAlertTarget();
287 void RemoveAlertTarget(); 289 void RemoveAlertTarget();
288 290
289 // Return the text to use for IAccessibleText. 291 // Return the text to use for IAccessibleText.
290 base::string16 TextForIAccessibleText(); 292 base::string16 TextForIAccessibleText();
(...skipping 17 matching lines...) Expand all
308 // should be performed on a particular child ID, rather than this object. 310 // should be performed on a particular child ID, rather than this object.
309 // This method tries to figure out the target object from |var_id| and 311 // This method tries to figure out the target object from |var_id| and
310 // returns a pointer to the target object if it exists, otherwise nullptr. 312 // returns a pointer to the target object if it exists, otherwise nullptr.
311 // Does not return a new reference. 313 // Does not return a new reference.
312 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id); 314 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id);
313 }; 315 };
314 316
315 } // namespace ui 317 } // namespace ui
316 318
317 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ 319 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_delegate.h ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698