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

Side by Side Diff: third_party/WebKit/Source/core/editing/SelectionTemplate.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SelectionTemplate_h 5 #ifndef SelectionTemplate_h
6 #define SelectionTemplate_h 6 #define SelectionTemplate_h
7 7
8 #include <iosfwd>
8 #include "base/macros.h" 9 #include "base/macros.h"
9 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
10 #include "core/editing/EphemeralRange.h" 11 #include "core/editing/EphemeralRange.h"
11 #include "core/editing/Position.h" 12 #include "core/editing/Position.h"
12 #include "core/editing/PositionWithAffinity.h" 13 #include "core/editing/PositionWithAffinity.h"
13 #include "core/editing/TextAffinity.h" 14 #include "core/editing/TextAffinity.h"
14 #include "core/editing/TextGranularity.h" 15 #include "core/editing/TextGranularity.h"
15 #include "wtf/Allocator.h" 16 #include "wtf/Allocator.h"
16 #include <iosfwd>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 // SelectionTemplate is used for representing a selection in DOM tree or Flat 20 // SelectionTemplate is used for representing a selection in DOM tree or Flat
21 // tree with template parameter |Strategy|. Instances of |SelectionTemplate| 21 // tree with template parameter |Strategy|. Instances of |SelectionTemplate|
22 // are immutable objects, you can't change them once constructed. 22 // are immutable objects, you can't change them once constructed.
23 // 23 //
24 // To construct |SelectionTemplate| object, please use |Builder| class. 24 // To construct |SelectionTemplate| object, please use |Builder| class.
25 template <typename Strategy> 25 template <typename Strategy>
26 class CORE_EXPORT SelectionTemplate final { 26 class CORE_EXPORT SelectionTemplate final {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 using SelectionInDOMTree = SelectionTemplate<EditingStrategy>; 128 using SelectionInDOMTree = SelectionTemplate<EditingStrategy>;
129 using SelectionInFlatTree = SelectionTemplate<EditingInFlatTreeStrategy>; 129 using SelectionInFlatTree = SelectionTemplate<EditingInFlatTreeStrategy>;
130 130
131 CORE_EXPORT std::ostream& operator<<(std::ostream&, const SelectionInDOMTree&); 131 CORE_EXPORT std::ostream& operator<<(std::ostream&, const SelectionInDOMTree&);
132 CORE_EXPORT std::ostream& operator<<(std::ostream&, const SelectionInFlatTree&); 132 CORE_EXPORT std::ostream& operator<<(std::ostream&, const SelectionInFlatTree&);
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // SelectionTemplate_h 136 #endif // SelectionTemplate_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698