OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004 Apple Computer, 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 VisibleUnits_h | 26 #ifndef VisibleUnits_h |
27 #define VisibleUnits_h | 27 #define VisibleUnits_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/editing/EditingBoundary.h" | 30 #include "core/editing/EditingBoundary.h" |
31 #include "core/editing/PositionWithAffinity.h" | 31 #include "core/editing/PositionWithAffinity.h" |
| 32 #include "core/editing/VisiblePosition.h" |
32 #include "platform/text/TextDirection.h" | 33 #include "platform/text/TextDirection.h" |
33 | 34 |
34 namespace blink { | 35 namespace blink { |
35 | 36 |
36 class LayoutRect; | 37 class LayoutRect; |
37 class LayoutUnit; | 38 class LayoutUnit; |
38 class LayoutObject; | 39 class LayoutObject; |
39 class Node; | 40 class Node; |
40 class VisiblePosition; | |
41 class IntPoint; | 41 class IntPoint; |
42 class InlineBox; | 42 class InlineBox; |
43 class LocalFrame; | 43 class LocalFrame; |
44 | 44 |
45 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; | 45 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; |
46 | 46 |
47 struct InlineBoxPosition { | 47 struct InlineBoxPosition { |
48 InlineBox* inlineBox; | 48 InlineBox* inlineBox; |
49 int offsetInBox; | 49 int offsetInBox; |
50 | 50 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // Returns a hit-tested VisiblePosition for the given point in contents-space | 158 // Returns a hit-tested VisiblePosition for the given point in contents-space |
159 // coordinates. | 159 // coordinates. |
160 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); | 160 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); |
161 | 161 |
162 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 162 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 #endif // VisibleUnits_h | 166 #endif // VisibleUnits_h |
OLD | NEW |