blob: f99b723eed3bcda2f3c401eb7ad09c3f77326f65 (
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
30
31
32
33
34
35
36
|
// Copyright 2019 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.
#include "third_party/blink/renderer/modules/hid/hid_connection_event.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_hid_connection_event_init.h"
#include "third_party/blink/renderer/modules/hid/hid_device.h"
namespace blink {
HIDConnectionEvent* HIDConnectionEvent::Create(
const AtomicString& type,
const HIDConnectionEventInit* initializer) {
return MakeGarbageCollected<HIDConnectionEvent>(type, initializer);
}
HIDConnectionEvent* HIDConnectionEvent::Create(const AtomicString& type,
HIDDevice* device) {
return MakeGarbageCollected<HIDConnectionEvent>(type, device);
}
HIDConnectionEvent::HIDConnectionEvent(
const AtomicString& type,
const HIDConnectionEventInit* initializer)
: Event(type, initializer) {}
HIDConnectionEvent::HIDConnectionEvent(const AtomicString& type,
HIDDevice* device)
: Event(type, Bubbles::kNo, Cancelable::kNo) {}
void HIDConnectionEvent::Trace(Visitor* visitor) {
Event::Trace(visitor);
}
} // namespace blink
|