| Index: third_party/WebKit/Source/core/events/InputEvent.h
|
| diff --git a/third_party/WebKit/Source/core/events/InputEvent.h b/third_party/WebKit/Source/core/events/InputEvent.h
|
| index 651ee134743c67f4237bee6418d15bc2fca8da9f..8ea5bbf11fd05f4ee146267d0368f31d2a5047df 100644
|
| --- a/third_party/WebKit/Source/core/events/InputEvent.h
|
| +++ b/third_party/WebKit/Source/core/events/InputEvent.h
|
| @@ -10,6 +10,8 @@
|
|
|
| namespace blink {
|
|
|
| +class Range;
|
| +
|
| class InputEvent final : public UIEvent {
|
| DEFINE_WRAPPERTYPEINFO();
|
|
|
| @@ -47,23 +49,39 @@ public:
|
| IsComposing = true,
|
| };
|
|
|
| - static InputEvent* createBeforeInput(InputType, const String& data, EventCancelable, EventIsComposing);
|
| + static InputEvent* createBeforeInput(InputType, const String& data, EventCancelable, EventIsComposing, const HeapVector<Member<Range>>&);
|
|
|
| String inputType() const;
|
| const String& data() const { return m_data; }
|
| bool isComposing() const { return m_isComposing; }
|
| + // TODO(chongz): Return StaticRange.
|
| + HeapVector<Member<Range>> getRanges() const { return m_ranges; };
|
|
|
| bool isInputEvent() const override;
|
|
|
| + EventDispatchMediator* createMediator() override;
|
| +
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| + friend class InputEventDispatchMediator;
|
| InputEvent();
|
| InputEvent(const AtomicString&, const InputEventInit&);
|
|
|
| InputType m_inputType;
|
| String m_data;
|
| bool m_isComposing;
|
| + HeapVector<Member<Range>> m_ranges;
|
| +};
|
| +
|
| +class InputEventDispatchMediator final : public EventDispatchMediator {
|
| +public:
|
| + static InputEventDispatchMediator* create(InputEvent*);
|
| +
|
| +private:
|
| + explicit InputEventDispatchMediator(InputEvent*);
|
| + InputEvent& event() const;
|
| + DispatchEventResult dispatchEvent(EventDispatcher&) const override;
|
| };
|
|
|
| DEFINE_EVENT_TYPE_CASTS(InputEvent);
|
|
|