Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Side by Side Diff: Source/core/editing/EditingUtilities.h

Issue 1306243006: Replace forward class declarations of VisiblePosition to include directives (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698