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

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

Issue 1314843003: Replace forward class declarations of VisibleSelection to include directive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T14:09:03 Created 5 years, 3 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 | « Source/core/editing/EditingStyle.h ('k') | Source/core/editing/SelectionController.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 13 matching lines...) Expand all
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 "core/editing/VisiblePosition.h"
34 #include "core/editing/VisibleSelection.h"
34 #include "platform/text/TextDirection.h" 35 #include "platform/text/TextDirection.h"
35 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
36 #include "wtf/text/CharacterNames.h" 37 #include "wtf/text/CharacterNames.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 enum class PositionMoveType { 41 enum class PositionMoveType {
41 CodePoint, // Move by a single code point. 42 CodePoint, // Move by a single code point.
42 Character, // Move to the next Unicode character break. 43 Character, // Move to the next Unicode character break.
43 BackwardDeletion // Subject to platform conventions. 44 BackwardDeletion // Subject to platform conventions.
44 }; 45 };
45 46
46 class Document; 47 class Document;
47 class Element; 48 class Element;
48 class HTMLBRElement; 49 class HTMLBRElement;
49 class HTMLElement; 50 class HTMLElement;
50 class HTMLLIElement; 51 class HTMLLIElement;
51 class HTMLSpanElement; 52 class HTMLSpanElement;
52 class HTMLUListElement; 53 class HTMLUListElement;
53 class Node; 54 class Node;
54 class Range; 55 class Range;
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
65 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable); 65 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 306 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
307 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 307 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
308 } 308 }
309 309
310 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 310 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
311 const String& nonBreakingSpaceString(); 311 const String& nonBreakingSpaceString();
312 312
313 } 313 }
314 314
315 #endif 315 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/EditingStyle.h ('k') | Source/core/editing/SelectionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698