| 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 #include "core/editing/PositionWithAffinity.h" | 5 #include "core/editing/PositionWithAffinity.h" |
| 6 | 6 |
| 7 #include <ostream> // NOLINT |
| 8 |
| 7 namespace blink { | 9 namespace blink { |
| 8 | 10 |
| 9 template <typename Strategy> | 11 template <typename Strategy> |
| 10 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit
ionTemplate<Strategy>& position, TextAffinity affinity) | 12 PositionWithAffinityTemplate<Strategy>::PositionWithAffinityTemplate(const Posit
ionTemplate<Strategy>& position, TextAffinity affinity) |
| 11 : m_position(position) | 13 : m_position(position) |
| 12 , m_affinity(affinity) | 14 , m_affinity(affinity) |
| 13 { | 15 { |
| 14 } | 16 } |
| 15 | 17 |
| 16 template <typename Strategy> | 18 template <typename Strategy> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 { | 41 { |
| 40 return ostream << positionWithAffinity.position() << '/' << positionWithAffi
nity.affinity(); | 42 return ostream << positionWithAffinity.position() << '/' << positionWithAffi
nity.affinity(); |
| 41 } | 43 } |
| 42 | 44 |
| 43 std::ostream& operator<<(std::ostream& ostream, const PositionInFlatTreeWithAffi
nity& positionWithAffinity) | 45 std::ostream& operator<<(std::ostream& ostream, const PositionInFlatTreeWithAffi
nity& positionWithAffinity) |
| 44 { | 46 { |
| 45 return ostream << positionWithAffinity.position() << '/' << positionWithAffi
nity.affinity(); | 47 return ostream << positionWithAffinity.position() << '/' << positionWithAffi
nity.affinity(); |
| 46 } | 48 } |
| 47 | 49 |
| 48 } // namespace blink | 50 } // namespace blink |
| OLD | NEW |