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

Unified Diff: Source/core/events/RelatedEvent.cpp

Issue 243403006: Implement contextmenu attribute with basic support of <menu> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect HTMLMenuElement as per spec Created 6 years, 4 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/core/events/RelatedEvent.h ('k') | Source/core/events/RelatedEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/RelatedEvent.cpp
diff --git a/Source/core/events/RelatedEvent.cpp b/Source/core/events/RelatedEvent.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..1ef87400ea7fb41b7a99cb81130b1c7079eaedb4
--- /dev/null
+++ b/Source/core/events/RelatedEvent.cpp
@@ -0,0 +1,58 @@
+// Copyright 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.
+
+#include "config.h"
+#include "core/events/RelatedEvent.h"
+
+namespace blink {
+
+RelatedEventInit::RelatedEventInit()
+{
+}
+
+RelatedEvent::~RelatedEvent()
+{
+}
+
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create()
+{
+ return adoptRefWillBeNoop(new RelatedEvent);
+}
+
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget)
+{
+ return adoptRefWillBeNoop(new RelatedEvent(type, canBubble, cancelable, relatedTarget));
+}
+
+PassRefPtrWillBeRawPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type, const RelatedEventInit& initializer)
+{
+ return adoptRefWillBeNoop(new RelatedEvent(type, initializer));
+}
+
+RelatedEvent::RelatedEvent()
+{
+ ScriptWrappable::init(this);
+}
+
+RelatedEvent::RelatedEvent(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget)
+ : Event(type, canBubble, cancelable)
+ , m_relatedTarget(relatedTarget)
+{
+ ScriptWrappable::init(this);
+}
+
+RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit& initializer)
+ : Event(eventType, initializer)
+ , m_relatedTarget(initializer.relatedTarget)
+{
+ ScriptWrappable::init(this);
+}
+
+void RelatedEvent::trace(Visitor* visitor)
+{
+ visitor->trace(m_relatedTarget);
+ Event::trace(visitor);
+}
+
+} // namespace blink
« no previous file with comments | « Source/core/events/RelatedEvent.h ('k') | Source/core/events/RelatedEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698