Chromium Code Reviews| 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&); | |
|
yosin_UTC9
2017/01/05 07:31:31
Can we move introducing absoluteSelectionBoundsOf(
joone
2017/01/06 20:40:43
Done: https://codereview.chromium.org/2616103003/
| |
| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 300 computeInlineBoxPosition(const PositionInFlatTree&, | 303 computeInlineBoxPosition(const PositionInFlatTree&, |
| 301 TextAffinity, | 304 TextAffinity, |
| 302 TextDirection primaryDirection); | 305 TextDirection primaryDirection); |
| 303 CORE_EXPORT InlineBoxPosition computeInlineBoxPosition(const VisiblePosition&); | 306 CORE_EXPORT InlineBoxPosition computeInlineBoxPosition(const VisiblePosition&); |
| 304 CORE_EXPORT InlineBoxPosition | 307 CORE_EXPORT InlineBoxPosition |
| 305 computeInlineBoxPosition(const VisiblePositionInFlatTree&); | 308 computeInlineBoxPosition(const VisiblePositionInFlatTree&); |
| 306 | 309 |
| 307 // Rect is local to the returned layoutObject | 310 // Rect is local to the returned layoutObject |
| 308 CORE_EXPORT LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, | 311 CORE_EXPORT LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, |
| 309 LayoutObject*&); | 312 LayoutObject*&); |
| 313 CORE_EXPORT LayoutRect localSelectionRectOfPosition(const PositionWithAffinity&, | |
|
yosin_UTC9
2017/01/05 07:31:31
It seems we don't need to export this function.
joone
2017/01/06 20:40:43
Removed.
| |
| 314 LayoutObject*&); | |
| 315 | |
| 310 CORE_EXPORT LayoutRect | 316 CORE_EXPORT LayoutRect |
| 311 localCaretRectOfPosition(const PositionInFlatTreeWithAffinity&, LayoutObject*&); | 317 localCaretRectOfPosition(const PositionInFlatTreeWithAffinity&, LayoutObject*&); |
| 312 bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject*); | 318 bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject*); |
| 313 | 319 |
| 314 // Returns a hit-tested VisiblePosition for the given point in contents-space | 320 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 315 // coordinates. | 321 // coordinates. |
| 316 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, | 322 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, |
| 317 LocalFrame*); | 323 LocalFrame*); |
| 318 | 324 |
| 319 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 325 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
| 320 | 326 |
| 321 } // namespace blink | 327 } // namespace blink |
| 322 | 328 |
| 323 #endif // VisibleUnits_h | 329 #endif // VisibleUnits_h |
| OLD | NEW |