| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 CORE_EXPORT VisiblePositionInFlatTree | 154 CORE_EXPORT VisiblePositionInFlatTree |
| 155 previousPositionOf(const VisiblePositionInFlatTree&, | 155 previousPositionOf(const VisiblePositionInFlatTree&, |
| 156 EditingBoundaryCrossingRule = CanCrossEditingBoundary); | 156 EditingBoundaryCrossingRule = CanCrossEditingBoundary); |
| 157 | 157 |
| 158 // words | 158 // words |
| 159 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition&, | 159 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition&, |
| 160 EWordSide = RightWordIfOnBoundary); | 160 EWordSide = RightWordIfOnBoundary); |
| 161 CORE_EXPORT VisiblePositionInFlatTree | 161 CORE_EXPORT VisiblePositionInFlatTree |
| 162 startOfWord(const VisiblePositionInFlatTree&, | 162 startOfWord(const VisiblePositionInFlatTree&, |
| 163 EWordSide = RightWordIfOnBoundary); | 163 EWordSide = RightWordIfOnBoundary); |
| 164 // TODO(yoichio): Replace |endOfWord| to |endOfWordPosition| because returned |
| 165 // Position should be canonicalized with |nextBoundary()| by TextItetator. |
| 166 CORE_EXPORT Position endOfWordPosition(const VisiblePosition&, |
| 167 EWordSide = RightWordIfOnBoundary); |
| 164 CORE_EXPORT VisiblePosition endOfWord(const VisiblePosition&, | 168 CORE_EXPORT VisiblePosition endOfWord(const VisiblePosition&, |
| 165 EWordSide = RightWordIfOnBoundary); | 169 EWordSide = RightWordIfOnBoundary); |
| 170 CORE_EXPORT PositionInFlatTree |
| 171 endOfWordPosition(const VisiblePositionInFlatTree&, |
| 172 EWordSide = RightWordIfOnBoundary); |
| 166 CORE_EXPORT VisiblePositionInFlatTree | 173 CORE_EXPORT VisiblePositionInFlatTree |
| 167 endOfWord(const VisiblePositionInFlatTree&, EWordSide = RightWordIfOnBoundary); | 174 endOfWord(const VisiblePositionInFlatTree&, EWordSide = RightWordIfOnBoundary); |
| 168 VisiblePosition previousWordPosition(const VisiblePosition&); | 175 VisiblePosition previousWordPosition(const VisiblePosition&); |
| 169 VisiblePosition nextWordPosition(const VisiblePosition&); | 176 VisiblePosition nextWordPosition(const VisiblePosition&); |
| 170 VisiblePosition rightWordPosition(const VisiblePosition&, | 177 VisiblePosition rightWordPosition(const VisiblePosition&, |
| 171 bool skipsSpaceWhenMovingRight); | 178 bool skipsSpaceWhenMovingRight); |
| 172 VisiblePosition leftWordPosition(const VisiblePosition&, | 179 VisiblePosition leftWordPosition(const VisiblePosition&, |
| 173 bool skipsSpaceWhenMovingRight); | 180 bool skipsSpaceWhenMovingRight); |
| 174 | 181 |
| 175 // sentences | 182 // sentences |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // Returns a hit-tested VisiblePosition for the given point in contents-space | 327 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 321 // coordinates. | 328 // coordinates. |
| 322 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, | 329 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, |
| 323 LocalFrame*); | 330 LocalFrame*); |
| 324 | 331 |
| 325 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); | 332 CORE_EXPORT bool rendersInDifferentPosition(const Position&, const Position&); |
| 326 | 333 |
| 327 } // namespace blink | 334 } // namespace blink |
| 328 | 335 |
| 329 #endif // VisibleUnits_h | 336 #endif // VisibleUnits_h |
| OLD | NEW |