OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef InputEvent_h | |
6 #define InputEvent_h | |
7 | |
8 #include "core/events/InputEventInit.h" | |
9 #include "core/events/UIEvent.h" | |
10 | |
11 namespace blink { | |
12 | |
13 class InputEvent final : public UIEvent { | |
14 DEFINE_WRAPPERTYPEINFO(); | |
15 | |
16 public: | |
17 static PassRefPtrWillBeRawPtr<InputEvent> create() | |
18 { | |
19 return adoptRefWillBeNoop(new InputEvent); | |
20 } | |
21 | |
22 static PassRefPtrWillBeRawPtr<InputEvent> create(const AtomicString& type, c onst InputEventInit& initializer) | |
23 { | |
24 return adoptRefWillBeNoop(new InputEvent(type, initializer)); | |
25 } | |
26 | |
27 const String& inputType() const { return m_inputType; } | |
dtapuska
2016/02/09 15:49:12
I think this isn't necessary
| |
28 | |
29 bool isInputEvent() const override; | |
30 | |
31 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; | |
32 | |
33 DECLARE_VIRTUAL_TRACE(); | |
34 | |
35 private: | |
36 InputEvent(); | |
37 InputEvent(const AtomicString&, const InputEventInit&); | |
38 | |
39 String m_inputType; | |
dtapuska
2016/02/09 15:49:12
Where is the variable assigned?
| |
40 }; | |
41 | |
42 class InputEventDispatchMediator final : public EventDispatchMediator { | |
43 public: | |
44 static PassRefPtrWillBeRawPtr<InputEventDispatchMediator> create(PassRefPtrW illBeRawPtr<InputEvent>); | |
45 | |
46 private: | |
47 explicit InputEventDispatchMediator(PassRefPtrWillBeRawPtr<InputEvent>); | |
48 InputEvent& event() const; | |
49 bool dispatchEvent(EventDispatcher&) const override; | |
50 }; | |
51 | |
52 DEFINE_EVENT_TYPE_CASTS(InputEvent); | |
53 | |
54 } // namespace blink | |
55 | |
56 #endif // InputEvent_h | |
OLD | NEW |