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

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

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: Rebase on EditCommandSource and willApply() CLs Created 4 years 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/EditingUtilities.h
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.h b/third_party/WebKit/Source/core/editing/EditingUtilities.h
index 0b334ec53ffe6695c93391388a89bec3ff590747..512b40ed84dd39c20edecd35ab3d37c1a9cd6c25 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.h
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.h
@@ -58,6 +58,7 @@ enum class DeleteDirection {
Backward,
};
+class CompositeEditCommand;
class Document;
class Element;
class HTMLElement;
@@ -411,28 +412,15 @@ String stringWithRebalancedWhitespace(const String&,
const String& nonBreakingSpaceString();
// -------------------------------------------------------------------------
-// Events
+// InputEvent
// -------------------------------------------------------------------------
-// Functions dispatch InputEvent
-DispatchEventResult dispatchBeforeInputInsertText(EventTarget*,
- const String& data);
-DispatchEventResult dispatchBeforeInputFromComposition(
- EventTarget*,
- InputEvent::InputType,
- const String& data,
- InputEvent::EventCancelable);
-DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*,
- InputEvent::InputType,
- const RangeVector*);
-DispatchEventResult dispatchBeforeInputDataTransfer(EventTarget*,
- InputEvent::InputType,
- DataTransfer*,
- const RangeVector*);
-
InputEvent::InputType deletionInputTypeFromTextGranularity(DeleteDirection,
TextGranularity);
-
+InputEvent::EventIsComposing isComposingFromCommand(
+ const CompositeEditCommand*);
+InputEvent::EventCancelable isCancelableFromCommand(
+ const CompositeEditCommand*);
chongz 2016/12/20 04:48:58 Currently used by "Editor.cpp" and "CompositeEditC
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698