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

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: Fixed rebase 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 Node; 37 class Node;
38 class AXObjectCacheImpl; 38 class AXObjectCacheImpl;
39 39
40 class AXInlineTextBox final : public AXObject { 40 class AXInlineTextBox final : public AXObjectImpl {
41 WTF_MAKE_NONCOPYABLE(AXInlineTextBox); 41 WTF_MAKE_NONCOPYABLE(AXInlineTextBox);
42 42
43 private: 43 private:
44 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&); 44 AXInlineTextBox(PassRefPtr<AbstractInlineTextBox>, AXObjectCacheImpl&);
45 45
46 public: 46 public:
47 static AXInlineTextBox* Create(PassRefPtr<AbstractInlineTextBox>, 47 static AXInlineTextBox* Create(PassRefPtr<AbstractInlineTextBox>,
48 AXObjectCacheImpl&); 48 AXObjectCacheImpl&);
49 49
50 protected: 50 protected:
51 void Init() override; 51 void Init() override;
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 AXObjectImpl::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(AXObjectImpl** 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) const override;
65 AXObject* ComputeParent() const override; 65 AXObjectImpl* 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 AXObjectImpl* NextOnLine() const override;
69 AXObject* PreviousOnLine() const override; 69 AXObjectImpl* 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