| 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 27 matching lines...) Expand all Loading... |
| 38 #include "wtf/text/CharacterNames.h" | 38 #include "wtf/text/CharacterNames.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 enum class PositionMoveType { | 42 enum class PositionMoveType { |
| 43 // Move by a single code unit. |PositionMoveType::CodeUnit| is used for | 43 // Move by a single code unit. |PositionMoveType::CodeUnit| is used for |
| 44 // implementing other |PositionMoveType|. You should not use this. | 44 // implementing other |PositionMoveType|. You should not use this. |
| 45 CodeUnit, | 45 CodeUnit, |
| 46 // Move to the next Unicode code point. At most two code unit when we are | 46 // Move to the next Unicode code point. At most two code unit when we are |
| 47 // at surrogate pair. Please consider using |GraphemeCluster|. | 47 // at surrogate pair. Please consider using |GraphemeCluster|. |
| 48 CodePoint, | |
| 49 // Used with |previousPositionOf()| to compute number of code units as | |
| 50 // backward deletion, e.g Backspace key. This is similar to | |
| 51 // |GraphemeCluster| but some tailoring with platform dependent behavior. | |
| 52 BackwardDeletion, | 48 BackwardDeletion, |
| 53 // TODO(yosin): We'll have |GraphemeCluster| move type. | |
| 54 // Move by a grapheme cluster for user-perceived character in Unicode | 49 // Move by a grapheme cluster for user-perceived character in Unicode |
| 55 // Standard Annex #29, Unicode text segmentation[1]. | 50 // Standard Annex #29, Unicode text segmentation[1]. |
| 56 // [1] http://www.unicode.org/reports/tr29/ | 51 // [1] http://www.unicode.org/reports/tr29/ |
| 57 // GraphemeCluster, | 52 GraphemeCluster, |
| 58 }; | 53 }; |
| 59 | 54 |
| 60 class Document; | 55 class Document; |
| 61 class Element; | 56 class Element; |
| 62 class HTMLBRElement; | 57 class HTMLBRElement; |
| 63 class HTMLElement; | 58 class HTMLElement; |
| 64 class HTMLLIElement; | 59 class HTMLLIElement; |
| 65 class HTMLSpanElement; | 60 class HTMLSpanElement; |
| 66 class HTMLUListElement; | 61 class HTMLUListElement; |
| 67 class Node; | 62 class Node; |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 340 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 346 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 341 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
| 347 } | 342 } |
| 348 | 343 |
| 349 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 344 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 350 const String& nonBreakingSpaceString(); | 345 const String& nonBreakingSpaceString(); |
| 351 | 346 |
| 352 } // namespace blink | 347 } // namespace blink |
| 353 | 348 |
| 354 #endif | 349 #endif |
| OLD | NEW |