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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.h

Issue 2635963004: Revert of [EditCommandSource] Pass source from |Editor::Command| to |Editor::apply*()/insert*( (2/3) (Closed)
Patch Set: Fix revert conflcts 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/Editor.h
diff --git a/third_party/WebKit/Source/core/editing/Editor.h b/third_party/WebKit/Source/core/editing/Editor.h
index 85ad1f9f8de2a01fddb40ba2626decf25ae90d43..e34b28dadf360525899a6f16aaee725ef0e5e726 100644
--- a/third_party/WebKit/Source/core/editing/Editor.h
+++ b/third_party/WebKit/Source/core/editing/Editor.h
@@ -34,7 +34,6 @@
#include "core/editing/FrameSelection.h"
#include "core/editing/VisibleSelection.h"
#include "core/editing/WritingDirection.h"
-#include "core/editing/commands/CompositeEditCommand.h"
#include "core/editing/iterators/TextIterator.h"
#include "core/editing/markers/DocumentMarker.h"
#include "core/events/InputEvent.h"
@@ -99,12 +98,12 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
void copy();
void paste(EditCommandSource);
void pasteAsPlainText(EditCommandSource);
- void performDelete(EditCommandSource);
+ void performDelete();
static void countEvent(ExecutionContext*, const Event*);
void copyImage(const HitTestResult&);
- void transpose(EditCommandSource);
+ void transpose();
void respondToChangedContents(const VisibleSelection& endingSelection);
@@ -112,32 +111,24 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
TriState selectionHasStyle(CSSPropertyID, const String& value) const;
String selectionStartCSSPropertyValue(CSSPropertyID);
- void removeFormattingAndStyle(EditCommandSource);
+ void removeFormattingAndStyle();
void registerCommandGroup(CompositeEditCommand* commandGroupWrapper);
void clearLastEditCommand();
- bool deleteWithDirection(EditCommandSource,
- DeleteDirection,
+ bool deleteWithDirection(DeleteDirection,
TextGranularity,
bool killRing,
bool isTypingAction);
void deleteSelectionWithSmartDelete(
- EditCommandSource,
DeleteMode,
InputEvent::InputType,
const Position& referenceMovePosition = Position());
- void applyStyle(EditCommandSource, StylePropertySet*, InputEvent::InputType);
- void applyParagraphStyle(EditCommandSource,
- StylePropertySet*,
- InputEvent::InputType);
- void applyStyleToSelection(EditCommandSource,
- StylePropertySet*,
- InputEvent::InputType);
- void applyParagraphStyleToSelection(EditCommandSource,
- StylePropertySet*,
- InputEvent::InputType);
+ void applyStyle(StylePropertySet*, InputEvent::InputType);
+ void applyParagraphStyle(StylePropertySet*, InputEvent::InputType);
+ void applyStyleToSelection(StylePropertySet*, InputEvent::InputType);
+ void applyParagraphStyleToSelection(StylePropertySet*, InputEvent::InputType);
void appliedEditing(CompositeEditCommand*);
void unappliedEditing(EditCommandComposition*);
@@ -193,8 +184,7 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
bool executeCommand(const String& commandName, const String& value);
bool insertText(const String&, KeyboardEvent* triggeringEvent);
- bool insertTextWithoutSendingTextEvent(EditCommandSource,
- const String&,
+ bool insertTextWithoutSendingTextEvent(const String&,
bool selectInsertedText,
TextEvent* triggeringEvent);
bool insertLineBreak();
@@ -204,9 +194,9 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
void toggleOverwriteModeEnabled();
bool canUndo();
- void undo(EditCommandSource);
+ void undo();
bool canRedo();
- void redo(EditCommandSource);
+ void redo();
void setBaseWritingDirection(WritingDirection);
@@ -250,9 +240,7 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
const VisibleSelection& mark() const; // Mark, to be used as emacs uses it.
void setMark(const VisibleSelection&);
- void computeAndSetTypingStyle(EditCommandSource,
- StylePropertySet*,
- InputEvent::InputType);
+ void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType);
// |firstRectForRange| requires up-to-date layout.
IntRect firstRectForRange(const EphemeralRange&) const;
@@ -263,22 +251,18 @@ class CORE_EXPORT Editor final : public GarbageCollectedFinalized<Editor> {
bool markedTextMatchesAreHighlighted() const;
void setMarkedTextMatchesAreHighlighted(bool);
- void replaceSelectionWithFragment(EditCommandSource,
- DocumentFragment*,
+ void replaceSelectionWithFragment(DocumentFragment*,
bool selectReplacement,
bool smartReplace,
bool matchStyle,
InputEvent::InputType);
- void replaceSelectionWithText(EditCommandSource,
- const String&,
+ void replaceSelectionWithText(const String&,
bool selectReplacement,
bool smartReplace,
InputEvent::InputType);
// Implementation of WebLocalFrameImpl::replaceSelection.
void replaceSelection(const String&);
- // Implementation of SpellChecker::replaceMisspelledRange.
- void replaceSelectionForSpellChecker(const String&);
void replaceSelectionAfterDragging(DocumentFragment*,
InsertMode,
« 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