Chromium Code Reviews| 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..7cb3901927e77455e129a50ecdf62688b3960ebb 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 HeapRanges*); |
| String inputType() const; |
| const String& data() const { return m_data; } |
| bool isComposing() const { return m_isComposing; } |
| + // TODO(chongz): Return Vector<StaticRange>. |
| + HeapVector<Member<Range>> getRanges() const { return m_ranges; }; |
|
dtapuska
2016/05/13 13:27:17
This will likely deserve a comment. Probably in th
chongz
2016/05/19 04:41:48
Done.
|
| 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; |
| + HeapRanges 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); |