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

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

Issue 2858493002: Rename AXObject to AXObjectImpl in modules/ and web/ (Closed)
Patch Set: Review feedback Created 3 years, 7 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 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef AXInlineTextBox_h 29 #ifndef AXInlineTextBox_h
30 #define AXInlineTextBox_h 30 #define AXInlineTextBox_h
31 31
32 #include "core/layout/line/AbstractInlineTextBox.h" 32 #include "core/layout/line/AbstractInlineTextBox.h"
33 #include "modules/accessibility/AXObject.h" 33 #include "modules/accessibility/AXObjectImpl.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCacheImpl; 37 class AXObjectCacheImpl;
38 38
39 class AXInlineTextBox final : public AXObject { 39 class AXInlineTextBox final : public AXObjectImpl {
40 WTF_MAKE_NONCOPYABLE(AXInlineTextBox); 40 WTF_MAKE_NONCOPYABLE(AXInlineTextBox);
41 41
42 private: 42 private:
43 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&); 43 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&);
44 44
45 public: 45 public:
46 static AXInlineTextBox* Create(PassRefPtr<AbstractInlineTextBox>, 46 static AXInlineTextBox* Create(PassRefPtr<AbstractInlineTextBox>,
47 AXObjectCacheImpl&); 47 AXObjectCacheImpl&);
48 48
49 void Init() override; 49 void Init() override;
50 void Detach() override; 50 void Detach() override;
51 51
52 AccessibilityRole RoleValue() const override { return kInlineTextBoxRole; } 52 AccessibilityRole RoleValue() const override { return kInlineTextBoxRole; }
53 String GetName(AXNameFrom&, 53 String GetName(AXNameFrom&,
54 AXObject::AXObjectVector* name_objects) const override; 54 AXObjectImpl::AXObjectVector* name_objects) const override;
55 void TextCharacterOffsets(Vector<int>&) const override; 55 void TextCharacterOffsets(Vector<int>&) const override;
56 void GetWordBoundaries(Vector<AXRange>&) const override; 56 void GetWordBoundaries(Vector<AXRange>&) const override;
57 void GetRelativeBounds(AXObject** out_container, 57 void GetRelativeBounds(AXObjectImpl** out_container,
58 FloatRect& out_bounds_in_container, 58 FloatRect& out_bounds_in_container,
59 SkMatrix44& out_container_transform) const override; 59 SkMatrix44& out_container_transform) const override;
60 AXObject* ComputeParent() const override; 60 AXObjectImpl* ComputeParent() const override;
61 AccessibilityTextDirection GetTextDirection() const override; 61 AccessibilityTextDirection GetTextDirection() const override;
62 AXObject* NextOnLine() const override; 62 AXObjectImpl* NextOnLine() const override;
63 AXObject* PreviousOnLine() const override; 63 AXObjectImpl* PreviousOnLine() const override;
64 64
65 private: 65 private:
66 RefPtr<AbstractInlineTextBox> inline_text_box_; 66 RefPtr<AbstractInlineTextBox> inline_text_box_;
67 67
68 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 68 bool ComputeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // AXInlineTextBox_h 73 #endif // AXInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698