| Index: Source/modules/webmidi/MIDIConnectionEvent.cpp
|
| diff --git a/Source/core/css/CSSFontFaceLoadEvent.cpp b/Source/modules/webmidi/MIDIConnectionEvent.cpp
|
| similarity index 63%
|
| copy from Source/core/css/CSSFontFaceLoadEvent.cpp
|
| copy to Source/modules/webmidi/MIDIConnectionEvent.cpp
|
| index 5d0d06b1d96f5111bfe6de74202b62172489308b..cd4692a0d3eca86bb5f31ed59eb8cce79fd72ab9 100644
|
| --- a/Source/core/css/CSSFontFaceLoadEvent.cpp
|
| +++ b/Source/modules/webmidi/MIDIConnectionEvent.cpp
|
| @@ -1,5 +1,5 @@
|
| /*
|
| - * Copyright (C) 2013 Google Inc. All rights reserved.
|
| + * Copyright (C) 2014 Google Inc. All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -29,41 +29,47 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/css/CSSFontFaceLoadEvent.h"
|
| +#include "modules/webmidi/MIDIConnectionEvent.h"
|
|
|
| namespace WebCore {
|
|
|
| -CSSFontFaceLoadEvent::CSSFontFaceLoadEvent()
|
| +MIDIConnectionEvent::MIDIConnectionEvent()
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -CSSFontFaceLoadEvent::CSSFontFaceLoadEvent(const AtomicString& type, const FontFaceArray& fontfaces)
|
| +MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<MIDIPort> port)
|
| : Event(type, false, false)
|
| - , m_fontfaces(fontfaces)
|
| + , m_port(port)
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -CSSFontFaceLoadEvent::CSSFontFaceLoadEvent(const AtomicString& type, const CSSFontFaceLoadEventInit& initializer)
|
| +MIDIConnectionEvent::MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit& initializer)
|
| : Event(type, initializer)
|
| - , m_fontfaces(initializer.fontfaces)
|
| + , m_port(initializer.port)
|
| {
|
| ScriptWrappable::init(this);
|
| }
|
|
|
| -CSSFontFaceLoadEvent::~CSSFontFaceLoadEvent()
|
| +PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create()
|
| {
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent());
|
| }
|
|
|
| -const AtomicString& CSSFontFaceLoadEvent::interfaceName() const
|
| +PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create(const AtomicString& type, PassRefPtrWillBeRawPtr<MIDIPort> port)
|
| {
|
| - return EventNames::CSSFontFaceLoadEvent;
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent(type, port));
|
| }
|
|
|
| -void CSSFontFaceLoadEvent::trace(Visitor* visitor)
|
| +PassRefPtrWillBeRawPtr<MIDIConnectionEvent> MIDIConnectionEvent::create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
|
| {
|
| - visitor->trace(m_fontfaces);
|
| + return adoptRefWillBeNoop(new MIDIConnectionEvent(type, initializer));
|
| +}
|
| +
|
| +void MIDIConnectionEvent::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_port);
|
| Event::trace(visitor);
|
| }
|
|
|
|
|