Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: Source/core/editing/PositionWithAffinity.h

Issue 1203613003: Make inSameLine() in VisibleUnits.cpp to work with positions in composed tree (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-24T17:52:54 Get rid of redundant explict in RenderedPosition Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/EditingTestBase.cpp ('k') | Source/core/editing/PositionWithAffinity.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/editing/EditingTestBase.cpp ('k') | Source/core/editing/PositionWithAffinity.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698