Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: Source/modules/webmidi/MIDIConnectionEvent.cpp

Issue 302263004: Oilpan: Move [WillBeGarbageCollected] from Node to EventTarget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webmidi/MIDIConnectionEvent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/modules/webmidi/MIDIConnectionEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698