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

Side by Side Diff: Source/modules/accessibility/AXObject.h

Issue 1076453004: Show reasons why nodes are ignored in accessibility sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: pfeldman review comments (take 3) Created 5 years, 7 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 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 }; 306 };
307 307
308 enum AXIgnoredReason { 308 enum AXIgnoredReason {
309 AXActiveModalDialog, 309 AXActiveModalDialog,
310 AXAncestorDisallowsChild, 310 AXAncestorDisallowsChild,
311 AXAncestorIsLeafNode, 311 AXAncestorIsLeafNode,
312 AXAriaHidden, 312 AXAriaHidden,
313 AXAriaHiddenRoot, 313 AXAriaHiddenRoot,
314 AXEmptyAlt, 314 AXEmptyAlt,
315 AXEmptyText, 315 AXEmptyText,
316 AXInert,
316 AXInheritsPresentation, 317 AXInheritsPresentation,
317 AXLabelContainer, 318 AXLabelContainer,
318 AXLabelFor, 319 AXLabelFor,
319 AXNotRendered, 320 AXNotRendered,
320 AXNotVisible, 321 AXNotVisible,
322 AXPresentationRole,
dmazzoni 2015/04/30 15:06:40 How about PresentationalRole since it could be eit
321 AXProbablyPresentational, 323 AXProbablyPresentational,
322 AXStaticTextUsedAsNameFor, 324 AXStaticTextUsedAsNameFor,
323 AXUninteresting 325 AXUninteresting
324 }; 326 };
325 327
326 struct IgnoredReason { 328 struct IgnoredReason {
327 AXIgnoredReason reason; 329 AXIgnoredReason reason;
328 const AXObject* relatedObject; 330 const AXObject* relatedObject;
329 331
330 explicit IgnoredReason(AXIgnoredReason reason) 332 explicit IgnoredReason(AXIgnoredReason reason)
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 static bool includesARIAWidgetRole(const String&); 762 static bool includesARIAWidgetRole(const String&);
761 static bool hasInteractiveARIAAttribute(const Element&); 763 static bool hasInteractiveARIAAttribute(const Element&);
762 }; 764 };
763 765
764 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 766 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
765 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 767 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
766 768
767 } // namespace blink 769 } // namespace blink
768 770
769 #endif // AXObject_h 771 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698