OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008 Apple 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 12 matching lines...) Expand all Loading... |
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 EditingUtilities_h | 26 #ifndef EditingUtilities_h |
27 #define EditingUtilities_h | 27 #define EditingUtilities_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/Position.h" | 31 #include "core/editing/Position.h" |
32 #include "core/editing/PositionWithAffinity.h" | 32 #include "core/editing/PositionWithAffinity.h" |
| 33 #include "core/editing/VisiblePosition.h" |
33 #include "platform/text/TextDirection.h" | 34 #include "platform/text/TextDirection.h" |
34 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
35 #include "wtf/text/CharacterNames.h" | 36 #include "wtf/text/CharacterNames.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 | 39 |
39 enum class PositionMoveType { | 40 enum class PositionMoveType { |
40 CodePoint, // Move by a single code point. | 41 CodePoint, // Move by a single code point. |
41 Character, // Move to the next Unicode character break. | 42 Character, // Move to the next Unicode character break. |
42 BackwardDeletion // Subject to platform conventions. | 43 BackwardDeletion // Subject to platform conventions. |
43 }; | 44 }; |
44 | 45 |
45 class Document; | 46 class Document; |
46 class Element; | 47 class Element; |
47 class HTMLBRElement; | 48 class HTMLBRElement; |
48 class HTMLElement; | 49 class HTMLElement; |
49 class HTMLLIElement; | 50 class HTMLLIElement; |
50 class HTMLSpanElement; | 51 class HTMLSpanElement; |
51 class HTMLUListElement; | 52 class HTMLUListElement; |
52 class Node; | 53 class Node; |
53 class Range; | 54 class Range; |
54 class VisiblePosition; | |
55 class VisibleSelection; | 55 class VisibleSelection; |
56 | 56 |
57 // This file contains a set of helper functions used by the editing commands | 57 // This file contains a set of helper functions used by the editing commands |
58 | 58 |
59 // ------------------------------------------------------------------------- | 59 // ------------------------------------------------------------------------- |
60 // Node | 60 // Node |
61 // ------------------------------------------------------------------------- | 61 // ------------------------------------------------------------------------- |
62 | 62 |
63 // Functions returning Node | 63 // Functions returning Node |
64 | 64 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 305 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
306 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 306 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
307 } | 307 } |
308 | 308 |
309 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 309 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
310 const String& nonBreakingSpaceString(); | 310 const String& nonBreakingSpaceString(); |
311 | 311 |
312 } | 312 } |
313 | 313 |
314 #endif | 314 #endif |
OLD | NEW |