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

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

Issue 2151353002: [InputEvent] Replace |EditAction| with |InputType| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputevent-text-styling
Patch Set: Replaced |EditAction| with |InputType| Created 4 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 side-by-side diff with in-line comments
Download patch
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 7d21fdde6eecebf6f188497296a65f56423439aa..8958907745b3fbd6aa56670d19e5e8d7ca28421c 100644
--- a/third_party/WebKit/Source/core/editing/Editor.h
+++ b/third_party/WebKit/Source/core/editing/Editor.h
@@ -34,9 +34,9 @@
#include "core/editing/FrameSelection.h"
#include "core/editing/VisibleSelection.h"
#include "core/editing/WritingDirection.h"
-#include "core/editing/commands/EditAction.h"
#include "core/editing/iterators/TextIterator.h"
#include "core/editing/markers/DocumentMarker.h"
+#include "core/events/InputEvent.h"
#include "platform/PasteMode.h"
#include "platform/heap/Handle.h"
#include <memory>
@@ -109,10 +109,10 @@ public:
bool deleteWithDirection(SelectionDirection, TextGranularity, bool killRing, bool isTypingAction);
void deleteSelectionWithSmartDelete(bool smartDelete);
- void applyStyle(StylePropertySet*, EditAction = EditActionUnspecified);
- void applyParagraphStyle(StylePropertySet*, EditAction = EditActionUnspecified);
- void applyStyleToSelection(StylePropertySet*, EditAction);
- void applyParagraphStyleToSelection(StylePropertySet*, EditAction);
+ 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*);
@@ -213,7 +213,7 @@ public:
const VisibleSelection& mark() const; // Mark, to be used as emacs uses it.
void setMark(const VisibleSelection&);
- void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUnspecified);
+ void computeAndSetTypingStyle(StylePropertySet*, InputEvent::InputType);
IntRect firstRectForRange(const EphemeralRange&) const;
IntRect firstRectForRange(const Range*) const;

Powered by Google App Engine
This is Rietveld 408576698