summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/modules/EventModulesFactory.h
blob: 07da64a031cd98c5f82060ab7fe8e2f35eba0d61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef EventModulesFactory_h
#define EventModulesFactory_h

#include "core/events/EventFactory.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/AtomicString.h"

namespace blink {

class Event;

class EventModulesFactory final : public EventFactoryBase {
public:
    static PassOwnPtr<EventModulesFactory> create()
    {
        return adoptPtr(new EventModulesFactory());
    }

    PassRefPtrWillBeRawPtr<Event> create(ExecutionContext*, const String& eventType) override;
};

} // namespace blink

#endif