OLD | NEW |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public: | 45 public: |
46 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa
cheImpl&); | 46 static AXInlineTextBox* create(PassRefPtr<AbstractInlineTextBox>, AXObjectCa
cheImpl&); |
47 | 47 |
48 void init() override; | 48 void init() override; |
49 void detach() override; | 49 void detach() override; |
50 | 50 |
51 AccessibilityRole roleValue() const override { return InlineTextBoxRole; } | 51 AccessibilityRole roleValue() const override { return InlineTextBoxRole; } |
52 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri
de; | 52 String name(AXNameFrom&, AXObject::AXObjectVector* nameObjects) const overri
de; |
53 void textCharacterOffsets(Vector<int>&) const override; | 53 void textCharacterOffsets(Vector<int>&) const override; |
54 void wordBoundaries(Vector<AXRange>&) const override; | 54 void wordBoundaries(Vector<AXRange>&) const override; |
55 LayoutRect elementRect() const override; | |
56 void getRelativeBounds(AXObject** outContainer, FloatRect& outBoundsInContai
ner, SkMatrix44& outContainerTransform) const override; | 55 void getRelativeBounds(AXObject** outContainer, FloatRect& outBoundsInContai
ner, SkMatrix44& outContainerTransform) const override; |
57 AXObject* computeParent() const override; | 56 AXObject* computeParent() const override; |
58 AccessibilityTextDirection textDirection() const override; | 57 AccessibilityTextDirection textDirection() const override; |
59 AXObject* nextOnLine() const override; | 58 AXObject* nextOnLine() const override; |
60 AXObject* previousOnLine() const override; | 59 AXObject* previousOnLine() const override; |
61 | 60 |
62 private: | 61 private: |
63 RefPtr<AbstractInlineTextBox> m_inlineTextBox; | 62 RefPtr<AbstractInlineTextBox> m_inlineTextBox; |
64 | 63 |
65 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; | 64 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override
; |
66 }; | 65 }; |
67 | 66 |
68 } // namespace blink | 67 } // namespace blink |
69 | 68 |
70 #endif // AXInlineTextBox_h | 69 #endif // AXInlineTextBox_h |
OLD | NEW |