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

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

Issue 2956053005: Keep track of fixed positioning in accessibility tree.
Patch Set: 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) 2013, Google Inc. All rights reserved. 2 * Copyright (C) 2013, Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool IsAXInlineTextBox() const override { return true; } 54 bool IsAXInlineTextBox() const override { return true; }
55 55
56 public: 56 public:
57 AccessibilityRole RoleValue() const override { return kInlineTextBoxRole; } 57 AccessibilityRole RoleValue() const override { return kInlineTextBoxRole; }
58 String GetName(AXNameFrom&, 58 String GetName(AXNameFrom&,
59 AXObject::AXObjectVector* name_objects) const override; 59 AXObject::AXObjectVector* name_objects) const override;
60 void TextCharacterOffsets(Vector<int>&) const override; 60 void TextCharacterOffsets(Vector<int>&) const override;
61 void GetWordBoundaries(Vector<AXRange>&) const override; 61 void GetWordBoundaries(Vector<AXRange>&) const override;
62 void GetRelativeBounds(AXObject** out_container, 62 void GetRelativeBounds(AXObject** out_container,
63 FloatRect& out_bounds_in_container, 63 FloatRect& out_bounds_in_container,
64 SkMatrix44& out_container_transform) const override; 64 SkMatrix44& out_container_transform,
65 bool& out_is_fixed_positioned) const override;
65 AXObject* ComputeParent() const override; 66 AXObject* ComputeParent() const override;
66 AccessibilityTextDirection GetTextDirection() const override; 67 AccessibilityTextDirection GetTextDirection() const override;
67 Node* GetNode() const override { return inline_text_box_->GetNode(); } 68 Node* GetNode() const override { return inline_text_box_->GetNode(); }
68 AXObject* NextOnLine() const override; 69 AXObject* NextOnLine() const override;
69 AXObject* PreviousOnLine() const override; 70 AXObject* PreviousOnLine() const override;
70 71
71 private: 72 private:
72 RefPtr<AbstractInlineTextBox> inline_text_box_; 73 RefPtr<AbstractInlineTextBox> inline_text_box_;
73 74
74 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 75 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
75 }; 76 };
76 77
77 } // namespace blink 78 } // namespace blink
78 79
79 #endif // AXInlineTextBox_h 80 #endif // AXInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698