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

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.h

Issue 2642663002: Rename class EditCommandComposition to UndoStep (Closed)
Patch Set: Remove a redundant TODO Created 3 years, 11 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 | third_party/WebKit/Source/core/editing/Editor.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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 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 27 matching lines...) Expand all
38 #include "core/editing/markers/DocumentMarker.h" 38 #include "core/editing/markers/DocumentMarker.h"
39 #include "core/events/InputEvent.h" 39 #include "core/events/InputEvent.h"
40 #include "platform/PasteMode.h" 40 #include "platform/PasteMode.h"
41 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
42 #include <memory> 42 #include <memory>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class CompositeEditCommand; 46 class CompositeEditCommand;
47 class DragData; 47 class DragData;
48 class EditCommandComposition;
49 class EditorClient; 48 class EditorClient;
50 class EditorInternalCommand; 49 class EditorInternalCommand;
51 class LocalFrame; 50 class LocalFrame;
52 class HitTestResult; 51 class HitTestResult;
53 class KillRing; 52 class KillRing;
54 class Pasteboard; 53 class Pasteboard;
55 class SpellChecker; 54 class SpellChecker;
56 class StylePropertySet; 55 class StylePropertySet;
57 class TextEvent; 56 class TextEvent;
58 class UndoStack; 57 class UndoStack;
58 class UndoStep;
59 59
60 enum class EditCommandSource; 60 enum class EditCommandSource;
61 enum class DeleteDirection; 61 enum class DeleteDirection;
62 enum class DeleteMode { Simple, Smart }; 62 enum class DeleteMode { Simple, Smart };
63 enum class InsertMode { Simple, Smart }; 63 enum class InsertMode { Simple, Smart };
64 enum class DragSourceType { HTMLSource, PlainTextSource }; 64 enum class DragSourceType { HTMLSource, PlainTextSource };
65 65
66 enum EditorParagraphSeparator { 66 enum EditorParagraphSeparator {
67 EditorParagraphSeparatorIsDiv, 67 EditorParagraphSeparatorIsDiv,
68 EditorParagraphSeparatorIsP 68 EditorParagraphSeparatorIsP
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 DeleteMode, 124 DeleteMode,
125 InputEvent::InputType, 125 InputEvent::InputType,
126 const Position& referenceMovePosition = Position()); 126 const Position& referenceMovePosition = Position());
127 127
128 void applyStyle(StylePropertySet*, InputEvent::InputType); 128 void applyStyle(StylePropertySet*, InputEvent::InputType);
129 void applyParagraphStyle(StylePropertySet*, InputEvent::InputType); 129 void applyParagraphStyle(StylePropertySet*, InputEvent::InputType);
130 void applyStyleToSelection(StylePropertySet*, InputEvent::InputType); 130 void applyStyleToSelection(StylePropertySet*, InputEvent::InputType);
131 void applyParagraphStyleToSelection(StylePropertySet*, InputEvent::InputType); 131 void applyParagraphStyleToSelection(StylePropertySet*, InputEvent::InputType);
132 132
133 void appliedEditing(CompositeEditCommand*); 133 void appliedEditing(CompositeEditCommand*);
134 void unappliedEditing(EditCommandComposition*); 134 void unappliedEditing(UndoStep*);
135 void reappliedEditing(EditCommandComposition*); 135 void reappliedEditing(UndoStep*);
136 136
137 void setShouldStyleWithCSS(bool flag) { m_shouldStyleWithCSS = flag; } 137 void setShouldStyleWithCSS(bool flag) { m_shouldStyleWithCSS = flag; }
138 bool shouldStyleWithCSS() const { return m_shouldStyleWithCSS; } 138 bool shouldStyleWithCSS() const { return m_shouldStyleWithCSS; }
139 139
140 class CORE_EXPORT Command { 140 class CORE_EXPORT Command {
141 STACK_ALLOCATED(); 141 STACK_ALLOCATED();
142 142
143 public: 143 public:
144 Command(); 144 Command();
145 Command(const EditorInternalCommand*, EditCommandSource, LocalFrame*); 145 Command(const EditorInternalCommand*, EditCommandSource, LocalFrame*);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 m_mark = selection; 364 m_mark = selection;
365 } 365 }
366 366
367 inline bool Editor::markedTextMatchesAreHighlighted() const { 367 inline bool Editor::markedTextMatchesAreHighlighted() const {
368 return m_areMarkedTextMatchesHighlighted; 368 return m_areMarkedTextMatchesHighlighted;
369 } 369 }
370 370
371 } // namespace blink 371 } // namespace blink
372 372
373 #endif // Editor_h 373 #endif // Editor_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698