| 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 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef VisibleUnits_h | 26 #ifndef VisibleUnits_h |
| 27 #define VisibleUnits_h | 27 #define VisibleUnits_h |
| 28 | 28 |
| 29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
| 30 #include "core/editing/EditingBoundary.h" | 30 #include "core/editing/EditingBoundary.h" |
| 31 #include "core/editing/PositionWithAffinity.h" |
| 31 #include "platform/text/TextDirection.h" | 32 #include "platform/text/TextDirection.h" |
| 32 | 33 |
| 33 namespace blink { | 34 namespace blink { |
| 34 | 35 |
| 35 class LayoutRect; | 36 class LayoutRect; |
| 36 class LayoutUnit; | 37 class LayoutUnit; |
| 37 class PositionWithAffinity; | |
| 38 class LayoutObject; | 38 class LayoutObject; |
| 39 class Node; | 39 class Node; |
| 40 class VisiblePosition; | 40 class VisiblePosition; |
| 41 class IntPoint; | 41 class IntPoint; |
| 42 class LocalFrame; | 42 class LocalFrame; |
| 43 | 43 |
| 44 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; | 44 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; |
| 45 | 45 |
| 46 // words | 46 // words |
| 47 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition &, EWordSide = Rig
htWordIfOnBoundary); | 47 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition &, EWordSide = Rig
htWordIfOnBoundary); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Rect is local to the returned layoutObject | 104 // Rect is local to the returned layoutObject |
| 105 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&)
; | 105 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&)
; |
| 106 | 106 |
| 107 // Returns a hit-tested VisiblePosition for the given point in contents-space | 107 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 108 // coordinates. | 108 // coordinates. |
| 109 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); | 109 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); |
| 110 | 110 |
| 111 } // namespace blink | 111 } // namespace blink |
| 112 | 112 |
| 113 #endif // VisibleUnits_h | 113 #endif // VisibleUnits_h |
| OLD | NEW |