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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 EphemeralRange_h 5 #ifndef EphemeralRange_h
6 #define EphemeralRange_h 6 #define EphemeralRange_h
7 7
8 #include "core/editing/Position.h" 8 #include "core/editing/Position.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Document; 12 class Document;
13 class Range; 13 class Range;
14 14
15 // Unlike |Range| objects, |EphemeralRangeTemplate| objects aren't relocated. 15 // Unlike |Range| objects, |EphemeralRangeTemplate| objects aren't relocated.
16 // You should not use |EphemeralRangeTemplate| objects after DOM modification. 16 // You should not use |EphemeralRangeTemplate| objects after DOM modification.
17 // 17 //
18 // EphemeralRangeTemplate is supposed to use returning or passing start and end 18 // EphemeralRangeTemplate is supposed to use returning or passing start and end
19 // position. 19 // position.
20 // 20 //
21 // Example usage: 21 // Example usage:
22 // RefPtrWillBeRawPtr<Range> range = produceRange(); 22 // RawPtr<Range> range = produceRange();
23 // consumeRange(range.get()); 23 // consumeRange(range.get());
24 // ... no DOM modification ... 24 // ... no DOM modification ...
25 // consumeRange2(range.get()); 25 // consumeRange2(range.get());
26 // 26 //
27 // Above code should be: 27 // Above code should be:
28 // EphemeralRangeTemplate range = produceRange(); 28 // EphemeralRangeTemplate range = produceRange();
29 // consumeRange(range); 29 // consumeRange(range);
30 // ... no DOM modification ... 30 // ... no DOM modification ...
31 // consumeRange2(range); 31 // consumeRange2(range);
32 // 32 //
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 }; 86 };
87 87
88 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing Strategy>; 88 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing Strategy>;
89 using EphemeralRange = EphemeralRangeTemplate<EditingStrategy>; 89 using EphemeralRange = EphemeralRangeTemplate<EditingStrategy>;
90 90
91 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing InFlatTreeStrategy>; 91 extern template class CORE_EXTERN_TEMPLATE_EXPORT EphemeralRangeTemplate<Editing InFlatTreeStrategy>;
92 using EphemeralRangeInFlatTree = EphemeralRangeTemplate<EditingInFlatTreeStrateg y>; 92 using EphemeralRangeInFlatTree = EphemeralRangeTemplate<EditingInFlatTreeStrateg y>;
93 93
94 // Returns a newly created |Range| object from |range| or |nullptr| if 94 // Returns a newly created |Range| object from |range| or |nullptr| if
95 // |range.isNull()| returns true. 95 // |range.isNull()| returns true.
96 CORE_EXPORT PassRefPtrWillBeRawPtr<Range> createRange(const EphemeralRange& /* r ange */); 96 CORE_EXPORT RawPtr<Range> createRange(const EphemeralRange& /* range */);
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditorTest.cpp ('k') | third_party/WebKit/Source/core/editing/EphemeralRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698