OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 EventModulesFactory_h | 5 #ifndef EventModulesFactory_h |
6 #define EventModulesFactory_h | 6 #define EventModulesFactory_h |
7 | 7 |
8 #include "core/events/EventFactory.h" | 8 #include "core/events/EventFactory.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
11 #include "wtf/text/AtomicString.h" | 11 #include "wtf/text/AtomicString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class Event; | 15 class Event; |
16 | 16 |
17 class EventModulesFactory final : public EventFactoryBase { | 17 class EventModulesFactory final : public EventFactoryBase { |
18 public: | 18 public: |
19 static PassOwnPtr<EventModulesFactory> create() | 19 static PassOwnPtr<EventModulesFactory> create() |
20 { | 20 { |
21 return adoptPtr(new EventModulesFactory()); | 21 return adoptPtr(new EventModulesFactory()); |
22 } | 22 } |
23 | 23 |
24 PassRefPtrWillBeRawPtr<Event> create(const String& eventType) override; | 24 PassRefPtrWillBeRawPtr<Event> create(ExecutionContext*, const String& eventT
ype) override; |
25 }; | 25 }; |
26 | 26 |
27 } // namespace blink | 27 } // namespace blink |
28 | 28 |
29 #endif | 29 #endif |
OLD | NEW |