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

Side by Side Diff: third_party/WebKit/Source/core/events/InputEvent.h

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InputEvent_h 5 #ifndef InputEvent_h
6 #define InputEvent_h 6 #define InputEvent_h
7 7
8 #include "core/clipboard/DataTransfer.h" 8 #include "core/clipboard/DataTransfer.h"
9 #include "core/dom/Range.h" 9 #include "core/dom/Range.h"
10 #include "core/dom/StaticRange.h" 10 #include "core/dom/StaticRange.h"
(...skipping 22 matching lines...) Expand all
33 InsertUnorderedList, 33 InsertUnorderedList,
34 InsertHorizontalRule, 34 InsertHorizontalRule,
35 InsertFromPaste, 35 InsertFromPaste,
36 InsertFromDrop, 36 InsertFromDrop,
37 InsertReplacementText, 37 InsertReplacementText,
38 // Deletion. 38 // Deletion.
39 DeleteComposedCharacterForward, 39 DeleteComposedCharacterForward,
40 DeleteComposedCharacterBackward, 40 DeleteComposedCharacterBackward,
41 DeleteWordBackward, 41 DeleteWordBackward,
42 DeleteWordForward, 42 DeleteWordForward,
43 DeleteLineBackward, 43 DeleteSoftLineBackward,
44 DeleteLineForward, 44 DeleteSoftLineForward,
45 DeleteContent,
45 DeleteContentBackward, 46 DeleteContentBackward,
46 DeleteContentForward, 47 DeleteContentForward,
47 DeleteByCut, 48 DeleteByCut,
48 DeleteByDrag, 49 DeleteByDrag,
49 // History. 50 // History.
50 HistoryUndo, 51 HistoryUndo,
51 HistoryRedo, 52 HistoryRedo,
52 // Formatting. 53 // Formatting.
53 FormatBold, 54 FormatBold,
54 FormatItalic, 55 FormatItalic,
(...skipping 29 matching lines...) Expand all
84 EventCancelable, 85 EventCancelable,
85 EventIsComposing, 86 EventIsComposing,
86 const RangeVector*); 87 const RangeVector*);
87 static InputEvent* createBeforeInput(InputType, 88 static InputEvent* createBeforeInput(InputType,
88 DataTransfer*, 89 DataTransfer*,
89 EventCancelable, 90 EventCancelable,
90 EventIsComposing, 91 EventIsComposing,
91 const RangeVector*); 92 const RangeVector*);
92 static InputEvent* createInput(InputType, 93 static InputEvent* createInput(InputType,
93 const String& data, 94 const String& data,
94 EventIsComposing, 95 EventIsComposing);
95 const RangeVector*);
96 96
97 String inputType() const; 97 String inputType() const;
98 const String& data() const { return m_data; } 98 const String& data() const { return m_data; }
99 DataTransfer* dataTransfer() const { return m_dataTransfer.get(); } 99 DataTransfer* dataTransfer() const { return m_dataTransfer.get(); }
100 bool isComposing() const { return m_isComposing; } 100 bool isComposing() const { return m_isComposing; }
101 // Returns a copy of target ranges during event dispatch, and returns an empty 101 // Returns a copy of target ranges during event dispatch, and returns an empty
102 // vector after dispatch. 102 // vector after dispatch.
103 StaticRangeVector getTargetRanges() const; 103 StaticRangeVector getTargetRanges() const;
104 104
105 bool isInputEvent() const override; 105 bool isInputEvent() const override;
(...skipping 23 matching lines...) Expand all
129 explicit InputEventDispatchMediator(InputEvent*); 129 explicit InputEventDispatchMediator(InputEvent*);
130 InputEvent& event() const; 130 InputEvent& event() const;
131 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 131 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
132 }; 132 };
133 133
134 DEFINE_EVENT_TYPE_CASTS(InputEvent); 134 DEFINE_EVENT_TYPE_CASTS(InputEvent);
135 135
136 } // namespace blink 136 } // namespace blink
137 137
138 #endif // InputEvent_h 138 #endif // InputEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698