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

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

Issue 422693002: Use tighter typing in editing: htmlediting create methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.cpp » ('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 21 matching lines...) Expand all
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 #include "wtf/unicode/CharacterNames.h" 33 #include "wtf/unicode/CharacterNames.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class Document; 37 class Document;
38 class Element; 38 class Element;
39 class ExceptionState; 39 class ExceptionState;
40 class HTMLBRElement; 40 class HTMLBRElement;
41 class HTMLElement; 41 class HTMLElement;
42 class HTMLLIElement;
43 class HTMLOListElement;
42 class HTMLSpanElement; 44 class HTMLSpanElement;
45 class HTMLUListElement;
43 class Node; 46 class Node;
44 class Position; 47 class Position;
45 class PositionWithAffinity; 48 class PositionWithAffinity;
46 class Range; 49 class Range;
47 class VisiblePosition; 50 class VisiblePosition;
48 class VisibleSelection; 51 class VisibleSelection;
49 52
50 53
51 // This file contains a set of helper functions used by the editing commands 54 // This file contains a set of helper functions used by the editing commands
52 55
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star t, const VisiblePosition& end, ExceptionState&); 207 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star t, const VisiblePosition& end, ExceptionState&);
205 208
206 // ------------------------------------------------------------------------- 209 // -------------------------------------------------------------------------
207 // HTMLElement 210 // HTMLElement
208 // ------------------------------------------------------------------------- 211 // -------------------------------------------------------------------------
209 212
210 // Functions returning HTMLElement 213 // Functions returning HTMLElement
211 214
212 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); 215 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&);
213 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); 216 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&);
214 PassRefPtrWillBeRawPtr<HTMLElement> createOrderedListElement(Document&); 217 PassRefPtrWillBeRawPtr<HTMLOListElement> createOrderedListElement(Document&);
215 PassRefPtrWillBeRawPtr<HTMLElement> createUnorderedListElement(Document&); 218 PassRefPtrWillBeRawPtr<HTMLUListElement> createUnorderedListElement(Document&);
216 PassRefPtrWillBeRawPtr<HTMLElement> createListItemElement(Document&); 219 PassRefPtrWillBeRawPtr<HTMLLIElement> createListItemElement(Document&);
217 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified Name&); 220 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified Name&);
218 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr ing&); 221 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr ing&);
219 222
220 HTMLElement* enclosingList(Node*); 223 HTMLElement* enclosingList(Node*);
221 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0); 224 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0);
222 Node* enclosingListChild(Node*); 225 Node* enclosingListChild(Node*);
223 226
224 // ------------------------------------------------------------------------- 227 // -------------------------------------------------------------------------
225 // Element 228 // Element
226 // ------------------------------------------------------------------------- 229 // -------------------------------------------------------------------------
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 271 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
269 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 272 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
270 } 273 }
271 274
272 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 275 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
273 const String& nonBreakingSpaceString(); 276 const String& nonBreakingSpaceString();
274 277
275 } 278 }
276 279
277 #endif 280 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698