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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 CORE_EXPORT Position mostForwardCaretPosition( | 101 CORE_EXPORT Position mostForwardCaretPosition( |
102 const Position&, | 102 const Position&, |
103 EditingBoundaryCrossingRule = CannotCrossEditingBoundary); | 103 EditingBoundaryCrossingRule = CannotCrossEditingBoundary); |
104 CORE_EXPORT PositionInFlatTree mostForwardCaretPosition( | 104 CORE_EXPORT PositionInFlatTree mostForwardCaretPosition( |
105 const PositionInFlatTree&, | 105 const PositionInFlatTree&, |
106 EditingBoundaryCrossingRule = CannotCrossEditingBoundary); | 106 EditingBoundaryCrossingRule = CannotCrossEditingBoundary); |
107 | 107 |
108 CORE_EXPORT bool isVisuallyEquivalentCandidate(const Position&); | 108 CORE_EXPORT bool isVisuallyEquivalentCandidate(const Position&); |
109 CORE_EXPORT bool isVisuallyEquivalentCandidate(const PositionInFlatTree&); | 109 CORE_EXPORT bool isVisuallyEquivalentCandidate(const PositionInFlatTree&); |
110 | 110 |
111 // Whether or not [node, 0] and [node, lastOffsetForEditing(node)] are their own
VisiblePositions. | 111 // Whether or not [node, 0] and [node, lastOffsetForEditing(node)] are their own |
| 112 // VisiblePositions. |
112 // If true, adjacent candidates are visually distinct. | 113 // If true, adjacent candidates are visually distinct. |
113 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); | 114 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); |
114 | 115 |
115 CORE_EXPORT Position canonicalPositionOf(const Position&); | 116 CORE_EXPORT Position canonicalPositionOf(const Position&); |
116 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); | 117 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); |
117 | 118 |
118 // Bounds of (possibly transformed) caret in absolute coords | 119 // Bounds of (possibly transformed) caret in absolute coords |
119 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); | 120 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); |
120 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); | 121 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); |
121 | 122 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // Returns a hit-tested VisiblePosition for the given point in contents-space | 365 // Returns a hit-tested VisiblePosition for the given point in contents-space |
365 // coordinates. | 366 // coordinates. |
366 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, | 367 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, |
367 LocalFrame*); | 368 LocalFrame*); |
368 | 369 |
369 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 370 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
370 | 371 |
371 } // namespace blink | 372 } // namespace blink |
372 | 373 |
373 #endif // VisibleUnits_h | 374 #endif // VisibleUnits_h |
OLD | NEW |