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

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

Issue 2956053005: Keep track of fixed positioning in accessibility tree.
Patch Set: GetSimpleRelativeBounds, add failing test for fixed with transform 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 /* 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 bool IsEnabled() const override; 61 bool IsEnabled() const override;
62 bool IsVisible() const override; 62 bool IsVisible() const override;
63 bool IsOffScreen() const override; 63 bool IsOffScreen() const override;
64 bool IsSelected() const override; 64 bool IsSelected() const override;
65 void SetSelected(bool) override; 65 void SetSelected(bool) override;
66 bool CanSetSelectedAttribute() const override; 66 bool CanSetSelectedAttribute() const override;
67 bool CanSetFocusAttribute() const override; 67 bool CanSetFocusAttribute() const override;
68 68
69 void GetRelativeBounds(AXObject** out_container, 69 void GetRelativeBounds(AXObject** out_container,
70 FloatRect& out_bounds_in_container, 70 FloatRect& out_bounds_in_container,
71 SkMatrix44& out_container_transform) const override; 71 SkMatrix44& out_container_transform,
72 bool& out_is_fixed_positioned) const override;
72 String TextAlternative(bool recursive, 73 String TextAlternative(bool recursive,
73 bool in_aria_labelled_by_traversal, 74 bool in_aria_labelled_by_traversal,
74 AXObjectSet& visited, 75 AXObjectSet& visited,
75 AXNameFrom&, 76 AXNameFrom&,
76 AXRelatedObjectVector*, 77 AXRelatedObjectVector*,
77 NameSources*) const override; 78 NameSources*) const override;
78 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 79 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
79 HTMLSelectElement* ParentSelectNode() const; 80 HTMLSelectElement* ParentSelectNode() const;
80 81
81 Member<HTMLOptionElement> element_; 82 Member<HTMLOptionElement> element_;
82 }; 83 };
83 84
84 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption()); 85 DEFINE_AX_OBJECT_TYPE_CASTS(AXMenuListOption, IsMenuListOption());
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // AXMenuListOption_h 89 #endif // AXMenuListOption_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698