| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 CORE_EXPORT bool RendersInDifferentPosition(const Position&, const Position&); | 334 CORE_EXPORT bool RendersInDifferentPosition(const Position&, const Position&); |
| 335 | 335 |
| 336 CORE_EXPORT Position SkipWhitespace(const Position&); | 336 CORE_EXPORT Position SkipWhitespace(const Position&); |
| 337 CORE_EXPORT PositionInFlatTree SkipWhitespace(const PositionInFlatTree&); | 337 CORE_EXPORT PositionInFlatTree SkipWhitespace(const PositionInFlatTree&); |
| 338 | 338 |
| 339 CORE_EXPORT IntRect ComputeTextRect(const EphemeralRange&); | 339 CORE_EXPORT IntRect ComputeTextRect(const EphemeralRange&); |
| 340 IntRect ComputeTextRect(const EphemeralRangeInFlatTree&); | 340 IntRect ComputeTextRect(const EphemeralRangeInFlatTree&); |
| 341 FloatRect ComputeTextFloatRect(const EphemeralRange&); | 341 FloatRect ComputeTextFloatRect(const EphemeralRange&); |
| 342 | 342 |
| 343 // Export below functions only for |VisibleUnit| family. | 343 // Export below functions only for |VisibleUnit| family. |
| 344 enum BoundarySearchContextAvailability { |
| 345 kDontHaveMoreContext, |
| 346 kMayHaveMoreContext |
| 347 }; |
| 348 |
| 349 typedef unsigned (*BoundarySearchFunction)(const UChar*, |
| 350 unsigned length, |
| 351 unsigned offset, |
| 352 BoundarySearchContextAvailability, |
| 353 bool& need_more_context); |
| 354 |
| 355 Position NextBoundary(const VisiblePosition&, BoundarySearchFunction); |
| 356 PositionInFlatTree NextBoundary(const VisiblePositionInFlatTree&, |
| 357 BoundarySearchFunction); |
| 358 Position PreviousBoundary(const VisiblePosition&, BoundarySearchFunction); |
| 359 PositionInFlatTree PreviousBoundary(const VisiblePositionInFlatTree&, |
| 360 BoundarySearchFunction); |
| 361 |
| 344 PositionWithAffinity HonorEditingBoundaryAtOrBefore(const PositionWithAffinity&, | 362 PositionWithAffinity HonorEditingBoundaryAtOrBefore(const PositionWithAffinity&, |
| 345 const Position&); | 363 const Position&); |
| 346 | 364 |
| 347 PositionInFlatTreeWithAffinity HonorEditingBoundaryAtOrBefore( | 365 PositionInFlatTreeWithAffinity HonorEditingBoundaryAtOrBefore( |
| 348 const PositionInFlatTreeWithAffinity&, | 366 const PositionInFlatTreeWithAffinity&, |
| 349 const PositionInFlatTree&); | 367 const PositionInFlatTree&); |
| 350 | 368 |
| 351 VisiblePosition HonorEditingBoundaryAtOrAfter(const VisiblePosition&, | 369 VisiblePosition HonorEditingBoundaryAtOrAfter(const VisiblePosition&, |
| 352 const Position&); | 370 const Position&); |
| 353 | 371 |
| 354 VisiblePositionInFlatTree HonorEditingBoundaryAtOrAfter( | 372 VisiblePositionInFlatTree HonorEditingBoundaryAtOrAfter( |
| 355 const VisiblePositionInFlatTree&, | 373 const VisiblePositionInFlatTree&, |
| 356 const PositionInFlatTree&); | 374 const PositionInFlatTree&); |
| 357 | 375 |
| 358 // Export below functions only for |SelectionModifier|. | 376 // Export below functions only for |SelectionModifier|. |
| 359 VisiblePosition HonorEditingBoundaryAtOrBefore(const VisiblePosition&, | 377 VisiblePosition HonorEditingBoundaryAtOrBefore(const VisiblePosition&, |
| 360 const Position&); | 378 const Position&); |
| 361 | 379 |
| 362 Position NextRootInlineBoxCandidatePosition(Node*, | 380 Position NextRootInlineBoxCandidatePosition(Node*, |
| 363 const VisiblePosition&, | 381 const VisiblePosition&, |
| 364 EditableType); | 382 EditableType); |
| 365 | 383 |
| 366 Position PreviousRootInlineBoxCandidatePosition(Node*, | 384 Position PreviousRootInlineBoxCandidatePosition(Node*, |
| 367 const VisiblePosition&, | 385 const VisiblePosition&, |
| 368 EditableType); | 386 EditableType); |
| 369 | 387 |
| 370 } // namespace blink | 388 } // namespace blink |
| 371 | 389 |
| 372 #endif // VisibleUnits_h | 390 #endif // VisibleUnits_h |
| OLD | NEW |