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

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

Issue 424493003: Use tighter typing in editing: CompositeEditCommand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 19 matching lines...) Expand all
30 #include "core/editing/EditingBoundary.h" 30 #include "core/editing/EditingBoundary.h"
31 #include "platform/text/TextDirection.h" 31 #include "platform/text/TextDirection.h"
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 HTMLElement; 41 class HTMLElement;
41 class HTMLSpanElement; 42 class HTMLSpanElement;
42 class Node; 43 class Node;
43 class Position; 44 class Position;
44 class PositionWithAffinity; 45 class PositionWithAffinity;
45 class Range; 46 class Range;
46 class VisiblePosition; 47 class VisiblePosition;
47 class VisibleSelection; 48 class VisibleSelection;
48 49
49 50
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star t, const VisiblePosition& end, ExceptionState&); 202 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star t, const VisiblePosition& end, ExceptionState&);
202 203
203 // ------------------------------------------------------------------------- 204 // -------------------------------------------------------------------------
204 // HTMLElement 205 // HTMLElement
205 // ------------------------------------------------------------------------- 206 // -------------------------------------------------------------------------
206 207
207 // Functions returning HTMLElement 208 // Functions returning HTMLElement
208 209
209 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); 210 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&);
210 PassRefPtrWillBeRawPtr<HTMLElement> createBreakElement(Document&); 211 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&);
211 PassRefPtrWillBeRawPtr<HTMLElement> createOrderedListElement(Document&); 212 PassRefPtrWillBeRawPtr<HTMLElement> createOrderedListElement(Document&);
212 PassRefPtrWillBeRawPtr<HTMLElement> createUnorderedListElement(Document&); 213 PassRefPtrWillBeRawPtr<HTMLElement> createUnorderedListElement(Document&);
213 PassRefPtrWillBeRawPtr<HTMLElement> createListItemElement(Document&); 214 PassRefPtrWillBeRawPtr<HTMLElement> createListItemElement(Document&);
214 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified Name&); 215 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const Qualified Name&);
215 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr ing&); 216 PassRefPtrWillBeRawPtr<HTMLElement> createHTMLElement(Document&, const AtomicStr ing&);
216 217
217 HTMLElement* enclosingList(Node*); 218 HTMLElement* enclosingList(Node*);
218 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0); 219 HTMLElement* outermostEnclosingList(Node*, HTMLElement* rootList = 0);
219 Node* enclosingListChild(Node*); 220 Node* enclosingListChild(Node*);
220 221
221 // ------------------------------------------------------------------------- 222 // -------------------------------------------------------------------------
222 // Element 223 // Element
223 // ------------------------------------------------------------------------- 224 // -------------------------------------------------------------------------
224 225
225 // Functions returning Element 226 // Functions returning Element
226 227
227 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); 228 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&);
228 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, PassRefP trWillBeRawPtr<Text> tabTextNode); 229 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, PassRefP trWillBeRawPtr<Text> tabTextNode);
229 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText); 230 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText);
230 PassRefPtrWillBeRawPtr<Element> createBlockPlaceholderElement(Document&); 231 PassRefPtrWillBeRawPtr<HTMLBRElement> createBlockPlaceholderElement(Document&);
231 232
232 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le); 233 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le);
233 Element* unsplittableElementForPosition(const Position&); 234 Element* unsplittableElementForPosition(const Position&);
234 235
235 // Boolean functions on Element 236 // Boolean functions on Element
236 237
237 bool canMergeLists(Element* firstList, Element* secondList); 238 bool canMergeLists(Element* firstList, Element* secondList);
238 239
239 // ------------------------------------------------------------------------- 240 // -------------------------------------------------------------------------
240 // VisibleSelection 241 // VisibleSelection
(...skipping 24 matching lines...) Expand all
265 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 266 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
266 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 267 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
267 } 268 }
268 269
269 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 270 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
270 const String& nonBreakingSpaceString(); 271 const String& nonBreakingSpaceString();
271 272
272 } 273 }
273 274
274 #endif 275 #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