OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef PlainTextRange_h | 26 #ifndef PlainTextRange_h |
27 #define PlainTextRange_h | 27 #define PlainTextRange_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/editing/EphemeralRange.h" | 30 #include "core/editing/EphemeralRange.h" |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 #include "wtf/Allocator.h" | 32 #include "platform/wtf/Allocator.h" |
33 #include "wtf/NotFound.h" | 33 #include "platform/wtf/NotFound.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "platform/wtf/PassRefPtr.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ContainerNode; | 38 class ContainerNode; |
39 class Range; | 39 class Range; |
40 | 40 |
41 class CORE_EXPORT PlainTextRange { | 41 class CORE_EXPORT PlainTextRange { |
42 STACK_ALLOCATED(); | 42 STACK_ALLOCATED(); |
43 | 43 |
44 public: | 44 public: |
(...skipping 30 matching lines...) Expand all Loading... |
75 enum GetRangeFor { kForGeneric, kForSelection }; | 75 enum GetRangeFor { kForGeneric, kForSelection }; |
76 EphemeralRange CreateRangeFor(const ContainerNode& scope, GetRangeFor) const; | 76 EphemeralRange CreateRangeFor(const ContainerNode& scope, GetRangeFor) const; |
77 | 77 |
78 const size_t start_; | 78 const size_t start_; |
79 const size_t end_; | 79 const size_t end_; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
83 | 83 |
84 #endif // PlainTextRange_h | 84 #endif // PlainTextRange_h |
OLD | NEW |