| 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 20 matching lines...) Expand all Loading... |
| 31 #include "platform/text/TextDirection.h" | 31 #include "platform/text/TextDirection.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class LayoutRect; | 35 class LayoutRect; |
| 36 class LayoutUnit; | 36 class LayoutUnit; |
| 37 class PositionWithAffinity; | 37 class PositionWithAffinity; |
| 38 class LayoutObject; | 38 class LayoutObject; |
| 39 class Node; | 39 class Node; |
| 40 class VisiblePosition; | 40 class VisiblePosition; |
| 41 class IntPoint; |
| 42 class LocalFrame; |
| 41 | 43 |
| 42 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; | 44 enum EWordSide { RightWordIfOnBoundary = false, LeftWordIfOnBoundary = true }; |
| 43 | 45 |
| 44 // words | 46 // words |
| 45 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition &, EWordSide = Rig
htWordIfOnBoundary); | 47 CORE_EXPORT VisiblePosition startOfWord(const VisiblePosition &, EWordSide = Rig
htWordIfOnBoundary); |
| 46 CORE_EXPORT VisiblePosition endOfWord(const VisiblePosition &, EWordSide = Right
WordIfOnBoundary); | 48 CORE_EXPORT VisiblePosition endOfWord(const VisiblePosition &, EWordSide = Right
WordIfOnBoundary); |
| 47 VisiblePosition previousWordPosition(const VisiblePosition &); | 49 VisiblePosition previousWordPosition(const VisiblePosition &); |
| 48 VisiblePosition nextWordPosition(const VisiblePosition &); | 50 VisiblePosition nextWordPosition(const VisiblePosition &); |
| 49 VisiblePosition rightWordPosition(const VisiblePosition&, bool skipsSpaceWhenMov
ingRight); | 51 VisiblePosition rightWordPosition(const VisiblePosition&, bool skipsSpaceWhenMov
ingRight); |
| 50 VisiblePosition leftWordPosition(const VisiblePosition&, bool skipsSpaceWhenMovi
ngRight); | 52 VisiblePosition leftWordPosition(const VisiblePosition&, bool skipsSpaceWhenMovi
ngRight); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 bool isEndOfDocument(const VisiblePosition &); | 97 bool isEndOfDocument(const VisiblePosition &); |
| 96 | 98 |
| 97 // editable content | 99 // editable content |
| 98 VisiblePosition startOfEditableContent(const VisiblePosition&); | 100 VisiblePosition startOfEditableContent(const VisiblePosition&); |
| 99 VisiblePosition endOfEditableContent(const VisiblePosition&); | 101 VisiblePosition endOfEditableContent(const VisiblePosition&); |
| 100 bool isEndOfEditableOrNonEditableContent(const VisiblePosition&); | 102 bool isEndOfEditableOrNonEditableContent(const VisiblePosition&); |
| 101 | 103 |
| 102 // Rect is local to the returned layoutObject | 104 // Rect is local to the returned layoutObject |
| 103 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&)
; | 105 LayoutRect localCaretRectOfPosition(const PositionWithAffinity&, LayoutObject*&)
; |
| 104 | 106 |
| 107 // Returns a hit-tested VisiblePosition for the given point in contents-space |
| 108 // coordinates. |
| 109 CORE_EXPORT VisiblePosition visiblePositionForContentsPoint(const IntPoint&, Loc
alFrame*); |
| 110 |
| 105 } // namespace blink | 111 } // namespace blink |
| 106 | 112 |
| 107 #endif // VisibleUnits_h | 113 #endif // VisibleUnits_h |
| OLD | NEW |