| 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/dom/Position.h" | 9 #include "core/dom/Position.h" |
| 10 #include "core/editing/TextAffinity.h" | 10 #include "core/editing/TextAffinity.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 { | 36 { |
| 37 visitor->trace(m_position); | 37 visitor->trace(m_position); |
| 38 } | 38 } |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 PositionType m_position; | 41 PositionType m_position; |
| 42 EAffinity m_affinity; | 42 EAffinity m_affinity; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 extern template class CORE_EXTERN_TEMPLATE_EXPORT PositionWithAffinityTemplate<P
osition>; | 45 extern template class CORE_EXTERN_TEMPLATE_EXPORT PositionWithAffinityTemplate<P
osition>; |
| 46 extern template class CORE_EXTERN_TEMPLATE_EXPORT PositionWithAffinityTemplate<P
ositionInComposedTree>; |
| 46 | 47 |
| 47 using PositionWithAffinity = PositionWithAffinityTemplate<Position>; | 48 using PositionWithAffinity = PositionWithAffinityTemplate<Position>; |
| 49 using PositionInComposedTreeWithAffinity = PositionWithAffinityTemplate<Position
InComposedTree>; |
| 48 | 50 |
| 49 } // namespace blink | 51 } // namespace blink |
| 50 | 52 |
| 51 #endif // PositionWithAffinity_h | 53 #endif // PositionWithAffinity_h |
| OLD | NEW |