| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 CORE_EXPORT bool isVisuallyEquivalentCandidate(const Position&); | 106 CORE_EXPORT bool isVisuallyEquivalentCandidate(const Position&); |
| 107 CORE_EXPORT bool isVisuallyEquivalentCandidate(const PositionInFlatTree&); | 107 CORE_EXPORT bool isVisuallyEquivalentCandidate(const PositionInFlatTree&); |
| 108 | 108 |
| 109 // Whether or not [node, 0] and [node, lastOffsetForEditing(node)] are their own
VisiblePositions. | 109 // Whether or not [node, 0] and [node, lastOffsetForEditing(node)] are their own
VisiblePositions. |
| 110 // If true, adjacent candidates are visually distinct. | 110 // If true, adjacent candidates are visually distinct. |
| 111 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); | 111 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); |
| 112 | 112 |
| 113 CORE_EXPORT Position canonicalPositionOf(const Position&); | 113 CORE_EXPORT Position canonicalPositionOf(const Position&); |
| 114 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); | 114 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); |
| 115 CORE_EXPORT Position caretPositionOf(const Position&); |
| 116 CORE_EXPORT PositionInFlatTree caretPositionOf(const PositionInFlatTree&); |
| 115 | 117 |
| 116 // Bounds of (possibly transformed) caret in absolute coords | 118 // Bounds of (possibly transformed) caret in absolute coords |
| 117 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); | 119 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); |
| 118 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); | 120 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); |
| 119 | 121 |
| 120 CORE_EXPORT UChar32 characterAfter(const VisiblePosition&); | 122 CORE_EXPORT UChar32 characterAfter(const VisiblePosition&); |
| 121 CORE_EXPORT UChar32 characterAfter(const VisiblePositionInFlatTree&); | 123 CORE_EXPORT UChar32 characterAfter(const VisiblePositionInFlatTree&); |
| 122 CORE_EXPORT UChar32 characterBefore(const VisiblePosition&); | 124 CORE_EXPORT UChar32 characterBefore(const VisiblePosition&); |
| 123 CORE_EXPORT UChar32 characterBefore(const VisiblePositionInFlatTree&); | 125 CORE_EXPORT UChar32 characterBefore(const VisiblePositionInFlatTree&); |
| 124 | 126 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 244 |
| 243 // Returns a hit-tested VisiblePosition for the given point in contents-space | 245 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 244 // coordinates. | 246 // coordinates. |
| 245 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); | 247 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); |
| 246 | 248 |
| 247 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 249 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
| 248 | 250 |
| 249 } // namespace blink | 251 } // namespace blink |
| 250 | 252 |
| 251 #endif // VisibleUnits_h | 253 #endif // VisibleUnits_h |
| OLD | NEW |