| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // If true, adjacent candidates are visually distinct. | 113 // If true, adjacent candidates are visually distinct. |
| 114 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); | 114 CORE_EXPORT bool endsOfNodeAreVisuallyDistinctPositions(const Node*); |
| 115 | 115 |
| 116 CORE_EXPORT Position canonicalPositionOf(const Position&); | 116 CORE_EXPORT Position canonicalPositionOf(const Position&); |
| 117 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); | 117 CORE_EXPORT PositionInFlatTree canonicalPositionOf(const PositionInFlatTree&); |
| 118 | 118 |
| 119 // Bounds of (possibly transformed) caret in absolute coords | 119 // Bounds of (possibly transformed) caret in absolute coords |
| 120 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); | 120 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePosition&); |
| 121 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); | 121 CORE_EXPORT IntRect absoluteCaretBoundsOf(const VisiblePositionInFlatTree&); |
| 122 | 122 |
| 123 CORE_EXPORT IntRect absoluteSelectionBoundsOf(const VisiblePosition&); |
| 124 CORE_EXPORT IntRect absoluteSelectionBoundsOf(const VisiblePositionInFlatTree&); |
| 125 |
| 123 CORE_EXPORT UChar32 characterAfter(const VisiblePosition&); | 126 CORE_EXPORT UChar32 characterAfter(const VisiblePosition&); |
| 124 CORE_EXPORT UChar32 characterAfter(const VisiblePositionInFlatTree&); | 127 CORE_EXPORT UChar32 characterAfter(const VisiblePositionInFlatTree&); |
| 125 CORE_EXPORT UChar32 characterBefore(const VisiblePosition&); | 128 CORE_EXPORT UChar32 characterBefore(const VisiblePosition&); |
| 126 CORE_EXPORT UChar32 characterBefore(const VisiblePositionInFlatTree&); | 129 CORE_EXPORT UChar32 characterBefore(const VisiblePositionInFlatTree&); |
| 127 | 130 |
| 128 // TODO(yosin) Since return value of |leftPositionOf()| with |VisiblePosition| | 131 // TODO(yosin) Since return value of |leftPositionOf()| with |VisiblePosition| |
| 129 // isn't defined well on flat tree, we should not use it for a position in | 132 // isn't defined well on flat tree, we should not use it for a position in |
| 130 // flat tree. | 133 // flat tree. |
| 131 CORE_EXPORT VisiblePosition leftPositionOf(const VisiblePosition&); | 134 CORE_EXPORT VisiblePosition leftPositionOf(const VisiblePosition&); |
| 132 CORE_EXPORT VisiblePositionInFlatTree | 135 CORE_EXPORT VisiblePositionInFlatTree |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Returns a hit-tested VisiblePosition for the given point in contents-space | 317 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 315 // coordinates. | 318 // coordinates. |
| 316 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, | 319 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, |
| 317 LocalFrame*); | 320 LocalFrame*); |
| 318 | 321 |
| 319 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 322 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
| 320 | 323 |
| 321 } // namespace blink | 324 } // namespace blink |
| 322 | 325 |
| 323 #endif // VisibleUnits_h | 326 #endif // VisibleUnits_h |
| OLD | NEW |