| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 PositionWithAffinity_h | 5 #ifndef PositionWithAffinity_h |
| 6 #define PositionWithAffinity_h | 6 #define PositionWithAffinity_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/editing/Position.h" | 9 #include "core/editing/Position.h" |
| 10 #include "core/editing/TextAffinity.h" | 10 #include "core/editing/TextAffinity.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool isNotNull() const { return m_position.isNotNull(); } | 37 bool isNotNull() const { return m_position.isNotNull(); } |
| 38 bool isNull() const { return m_position.isNull(); } | 38 bool isNull() const { return m_position.isNull(); } |
| 39 bool isOrphan() const { return m_position.isOrphan(); } | 39 bool isOrphan() const { return m_position.isOrphan(); } |
| 40 bool isConnected() const { return m_position.isConnected(); } | 40 bool isConnected() const { return m_position.isConnected(); } |
| 41 | 41 |
| 42 Node* anchorNode() const { return m_position.anchorNode(); } | 42 Node* anchorNode() const { return m_position.anchorNode(); } |
| 43 Document* document() const { return m_position.document(); } | 43 Document* document() const { return m_position.document(); } |
| 44 | 44 |
| 45 DEFINE_INLINE_TRACE() { visitor->trace(m_position); } | 45 DECLARE_TRACE(); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 PositionTemplate<Strategy> m_position; | 48 PositionTemplate<Strategy> m_position; |
| 49 TextAffinity m_affinity; | 49 TextAffinity m_affinity; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 extern template class CORE_EXTERN_TEMPLATE_EXPORT | 52 extern template class CORE_EXTERN_TEMPLATE_EXPORT |
| 53 PositionWithAffinityTemplate<EditingStrategy>; | 53 PositionWithAffinityTemplate<EditingStrategy>; |
| 54 extern template class CORE_EXTERN_TEMPLATE_EXPORT | 54 extern template class CORE_EXTERN_TEMPLATE_EXPORT |
| 55 PositionWithAffinityTemplate<EditingInFlatTreeStrategy>; | 55 PositionWithAffinityTemplate<EditingInFlatTreeStrategy>; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 78 } | 78 } |
| 79 | 79 |
| 80 CORE_EXPORT std::ostream& operator<<(std::ostream&, | 80 CORE_EXPORT std::ostream& operator<<(std::ostream&, |
| 81 const PositionWithAffinity&); | 81 const PositionWithAffinity&); |
| 82 CORE_EXPORT std::ostream& operator<<(std::ostream&, | 82 CORE_EXPORT std::ostream& operator<<(std::ostream&, |
| 83 const PositionInFlatTreeWithAffinity&); | 83 const PositionInFlatTreeWithAffinity&); |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| 86 | 86 |
| 87 #endif // PositionWithAffinity_h | 87 #endif // PositionWithAffinity_h |
| OLD | NEW |