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

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

Issue 1187073014: Templatize PositionWithAffinity class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-17T16:31:27 Created 5 years, 6 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
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 htmlediting_h 26 #ifndef htmlediting_h
27 #define htmlediting_h 27 #define htmlediting_h
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/dom/Position.h" 30 #include "core/dom/Position.h"
31 #include "core/editing/EditingBoundary.h" 31 #include "core/editing/EditingBoundary.h"
32 #include "core/editing/PositionWithAffinity.h"
32 #include "platform/text/TextDirection.h" 33 #include "platform/text/TextDirection.h"
33 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
34 #include "wtf/unicode/CharacterNames.h" 35 #include "wtf/unicode/CharacterNames.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 class Document; 39 class Document;
39 class Element; 40 class Element;
40 class HTMLBRElement; 41 class HTMLBRElement;
41 class HTMLElement; 42 class HTMLElement;
42 class HTMLLIElement; 43 class HTMLLIElement;
43 class HTMLSpanElement; 44 class HTMLSpanElement;
44 class HTMLUListElement; 45 class HTMLUListElement;
45 class Node; 46 class Node;
46 class PositionWithAffinity;
47 class Range; 47 class Range;
48 class VisiblePosition; 48 class VisiblePosition;
49 class VisibleSelection; 49 class VisibleSelection;
50 50
51 51
52 // This file contains a set of helper functions used by the editing commands 52 // This file contains a set of helper functions used by the editing commands
53 53
54 // ------------------------------------------------------------------------- 54 // -------------------------------------------------------------------------
55 // Node 55 // Node
56 // ------------------------------------------------------------------------- 56 // -------------------------------------------------------------------------
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 253 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
254 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 254 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
255 } 255 }
256 256
257 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 257 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
258 const String& nonBreakingSpaceString(); 258 const String& nonBreakingSpaceString();
259 259
260 } 260 }
261 261
262 #endif 262 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698