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

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

Issue 1488893002: Stops using SYSTEM_STATE_INDETERMINATE as it makes radio buttons appear to have a mixed state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a few test expectations. Created 5 years 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 enum AccessibilityState { 192 enum AccessibilityState {
193 AXBusyState, 193 AXBusyState,
194 AXCheckedState, 194 AXCheckedState,
195 AXEnabledState, 195 AXEnabledState,
196 AXExpandedState, 196 AXExpandedState,
197 AXFocusableState, 197 AXFocusableState,
198 AXFocusedState, 198 AXFocusedState,
199 AXHaspopupState, 199 AXHaspopupState,
200 AXHoveredState, 200 AXHoveredState,
201 AXIndeterminateState,
202 AXInvisibleState, 201 AXInvisibleState,
203 AXLinkedState, 202 AXLinkedState,
204 AXMultilineState, 203 AXMultilineState,
205 AXMultiselectableState, 204 AXMultiselectableState,
206 AXOffscreenState, 205 AXOffscreenState,
207 AXPressedState, 206 AXPressedState,
208 AXProtectedState, 207 AXProtectedState,
209 AXReadonlyState, 208 AXReadonlyState,
210 AXRequiredState, 209 AXRequiredState,
211 AXSelectableState, 210 AXSelectableState,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 bool isWebArea() const { return roleValue() == WebAreaRole; } 623 bool isWebArea() const { return roleValue() == WebAreaRole; }
625 624
626 // Check object state. 625 // Check object state.
627 virtual bool isChecked() const { return false; } 626 virtual bool isChecked() const { return false; }
628 virtual bool isClickable() const; 627 virtual bool isClickable() const;
629 virtual bool isCollapsed() const { return false; } 628 virtual bool isCollapsed() const { return false; }
630 virtual bool isEnabled() const { return false; } 629 virtual bool isEnabled() const { return false; }
631 virtual AccessibilityExpanded isExpanded() const { return ExpandedUndefined; } 630 virtual AccessibilityExpanded isExpanded() const { return ExpandedUndefined; }
632 virtual bool isFocused() const { return false; } 631 virtual bool isFocused() const { return false; }
633 virtual bool isHovered() const { return false; } 632 virtual bool isHovered() const { return false; }
634 virtual bool isIndeterminate() const { return false; }
635 virtual bool isLinked() const { return false; } 633 virtual bool isLinked() const { return false; }
636 virtual bool isLoaded() const { return false; } 634 virtual bool isLoaded() const { return false; }
637 virtual bool isMultiSelectable() const { return false; } 635 virtual bool isMultiSelectable() const { return false; }
638 virtual bool isOffScreen() const { return false; } 636 virtual bool isOffScreen() const { return false; }
639 virtual bool isPressed() const { return false; } 637 virtual bool isPressed() const { return false; }
640 virtual bool isReadOnly() const { return false; } 638 virtual bool isReadOnly() const { return false; }
641 virtual bool isRequired() const { return false; } 639 virtual bool isRequired() const { return false; }
642 virtual bool isSelected() const { return false; } 640 virtual bool isSelected() const { return false; }
643 virtual bool isSelectedOptionActive() const { return false; } 641 virtual bool isSelectedOptionActive() const { return false; }
644 virtual bool isVisible() const { return true; } 642 virtual bool isVisible() const { return true; }
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 977 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
980 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 978 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
981 979
982 } // namespace blink 980 } // namespace blink
983 981
984 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); 982 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason);
985 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); 983 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource);
986 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); 984 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource);
987 985
988 #endif // AXObject_h 986 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698