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

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

Issue 2713573002: Revert of Correctly compute parent of AXMenuListOption (patchset #8 id:160001 of https://codereview… (Closed)
Patch Set: Created 3 years, 10 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) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&); 47 AXMenuListOption(HTMLOptionElement*, AXObjectCacheImpl&);
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 bool isMenuListOption() const override { return true; } 50 bool isMenuListOption() const override { return true; }
51 51
52 Node* getNode() const override { return m_element; } 52 Node* getNode() const override { return m_element; }
53 void detach() override; 53 void detach() override;
54 bool isDetached() const override { return !m_element; } 54 bool isDetached() const override { return !m_element; }
55 AccessibilityRole roleValue() const override; 55 AccessibilityRole roleValue() const override;
56 bool canHaveChildren() const override { return false; } 56 bool canHaveChildren() const override { return false; }
57 AXObject* computeParent() const override;
58 57
59 Element* actionElement() const override; 58 Element* actionElement() const override;
60 bool isEnabled() const override; 59 bool isEnabled() const override;
61 bool isVisible() const override; 60 bool isVisible() const override;
62 bool isOffScreen() const override; 61 bool isOffScreen() const override;
63 bool isSelected() const override; 62 bool isSelected() const override;
64 void setSelected(bool) override; 63 void setSelected(bool) override;
65 bool canSetSelectedAttribute() const override; 64 bool canSetSelectedAttribute() const override;
66 void getRelativeBounds(AXObject** outContainer, 65 void getRelativeBounds(AXObject** outContainer,
67 FloatRect& outBoundsInContainer, 66 FloatRect& outBoundsInContainer,
68 SkMatrix44& outContainerTransform) const override; 67 SkMatrix44& outContainerTransform) const override;
69 String textAlternative(bool recursive, 68 String textAlternative(bool recursive,
70 bool inAriaLabelledByTraversal, 69 bool inAriaLabelledByTraversal,
71 AXObjectSet& visited, 70 AXObjectSet& visited,
72 AXNameFrom&, 71 AXNameFrom&,
73 AXRelatedObjectVector*, 72 AXRelatedObjectVector*,
74 NameSources*) const override; 73 NameSources*) const override;
75 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 74 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
76 75
77 Member<HTMLOptionElement> m_element; 76 Member<HTMLOptionElement> m_element;
78 }; 77 };
79 78
80 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption()); 79 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, isMenuListOption());
81 80
82 } // namespace blink 81 } // namespace blink
83 82
84 #endif // AXMenuListOption_h 83 #endif // AXMenuListOption_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698