OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EphemeralRange_h | 5 #ifndef EphemeralRange_h |
6 #define EphemeralRange_h | 6 #define EphemeralRange_h |
7 | 7 |
8 #include "core/editing/Position.h" | 8 #include "core/editing/Position.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 PositionTemplate<Strategy> m_startPosition; | 81 PositionTemplate<Strategy> m_startPosition; |
82 PositionTemplate<Strategy> m_endPosition; | 82 PositionTemplate<Strategy> m_endPosition; |
83 #if ENABLE(ASSERT) | 83 #if ENABLE(ASSERT) |
84 uint64_t m_domTreeVersion; | 84 uint64_t m_domTreeVersion; |
85 #endif | 85 #endif |
86 }; | 86 }; |
87 | 87 |
88 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing
Strategy>; | 88 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing
Strategy>; |
89 using EphemeralRange = EphemeralRangeTemplate<EditingStrategy>; | 89 using EphemeralRange = EphemeralRangeTemplate<EditingStrategy>; |
90 | 90 |
91 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing
InComposedTreeStrategy>; | 91 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing
InFlatTreeStrategy>; |
92 using EphemeralRangeInComposedTree = EphemeralRangeTemplate<EditingInComposedTre
eStrategy>; | 92 using EphemeralRangeInFlatTree = EphemeralRangeTemplate<EditingInFlatTreeStrateg
y>; |
93 | 93 |
94 // Returns a newly created |Range| object from |range| or |nullptr| if | 94 // Returns a newly created |Range| object from |range| or |nullptr| if |
95 // |range.isNull()| returns true. | 95 // |range.isNull()| returns true. |
96 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> createRange(const EphemeralRange& /* r
ange */); | 96 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> createRange(const EphemeralRange& /* r
ange */); |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
99 | 99 |
100 #endif | 100 #endif |
OLD | NEW |