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

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

Issue 2893683002: Selection follows focus/activedescendant in single selection containers (Closed)
Patch Set: Last test to fix we hope Created 3 years, 6 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 57
58 Element* ActionElement() const override; 58 Element* ActionElement() const override;
59 bool IsEnabled() const override; 59 bool IsEnabled() const override;
60 bool IsVisible() const override; 60 bool IsVisible() const override;
61 bool IsOffScreen() const override; 61 bool IsOffScreen() const override;
62 bool IsSelected() const override; 62 bool IsSelected() const override;
63 void SetSelected(bool) override; 63 void SetSelected(bool) override;
64 bool CanSetSelectedAttribute() const override; 64 bool CanSetSelectedAttribute() const override;
65 bool CanSetFocusAttribute() const override;
66
65 void GetRelativeBounds(AXObjectImpl** out_container, 67 void GetRelativeBounds(AXObjectImpl** out_container,
66 FloatRect& out_bounds_in_container, 68 FloatRect& out_bounds_in_container,
67 SkMatrix44& out_container_transform) const override; 69 SkMatrix44& out_container_transform) const override;
68 String TextAlternative(bool recursive, 70 String TextAlternative(bool recursive,
69 bool in_aria_labelled_by_traversal, 71 bool in_aria_labelled_by_traversal,
70 AXObjectSet& visited, 72 AXObjectSet& visited,
71 AXNameFrom&, 73 AXNameFrom&,
72 AXRelatedObjectVector*, 74 AXRelatedObjectVector*,
73 NameSources*) const override; 75 NameSources*) const override;
74 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 76 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
77 HTMLSelectElement* ParentSelectNode() const;
75 78
76 Member<HTMLOptionElement> element_; 79 Member<HTMLOptionElement> element_;
77 }; 80 };
78 81
79 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); 82 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption());
80 83
81 } // namespace blink 84 } // namespace blink
82 85
83 #endif // AXMenuListOption_h 86 #endif // AXMenuListOption_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698