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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXInlineTextBox.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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void Detach() override; 52 void Detach() override;
53 bool IsDetached() const override { return !inline_text_box_; } 53 bool IsDetached() const override { return !inline_text_box_; }
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 bool GetSimpleRelativeBounds(
63 FloatRect& out_bounds_in_container, 63 AXObject** out_container,
64 SkMatrix44& out_container_transform) const override; 64 FloatRect& out_bounds_in_container) const override;
65 AXObject* ComputeParent() const override; 65 AXObject* ComputeParent() const override;
66 AccessibilityTextDirection GetTextDirection() const override; 66 AccessibilityTextDirection GetTextDirection() const override;
67 Node* GetNode() const override { return inline_text_box_->GetNode(); } 67 Node* GetNode() const override { return inline_text_box_->GetNode(); }
68 AXObject* NextOnLine() const override; 68 AXObject* NextOnLine() const override;
69 AXObject* PreviousOnLine() const override; 69 AXObject* PreviousOnLine() const override;
70 70
71 private: 71 private:
72 RefPtr<AbstractInlineTextBox> inline_text_box_; 72 RefPtr<AbstractInlineTextBox> inline_text_box_;
73 73
74 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 74 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // AXInlineTextBox_h 79 #endif // AXInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698