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

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: Rebased global-constructors-listing-expected.txt Created 6 years, 5 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
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..b08717e33be88f297aa0ef79d3ce02af84ee8bcd
--- /dev/null
+++ b/Source/core/events/RelatedEvent.cpp
@@ -0,0 +1,45 @@
+// 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 WebCore {
Inactive 2014/07/23 14:19:07 s/WebCore/blink
pals 2014/07/24 10:49:25 Done.
+
+RelatedEventInit::RelatedEventInit()
+{
+}
+
+RelatedEvent::~RelatedEvent()
+{
+}
+
+PassRefPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type)
Inactive 2014/07/23 14:19:07 Use oilpan types in the cpp as well
pals 2014/07/24 10:49:25 Done.
+{
+ return adoptRef(new RelatedEvent(type));
+}
+
+PassRefPtr<RelatedEvent> RelatedEvent::create(const AtomicString& type, const RelatedEventInit& initializer)
+{
+ return adoptRef(new RelatedEvent(type, initializer));
+}
+
+RelatedEvent::RelatedEvent()
+{
+ ScriptWrappable::init(this);
+}
+
+RelatedEvent::RelatedEvent(const AtomicString& eventType)
+ : Event(eventType, true, true)
+{
+ ScriptWrappable::init(this);
+}
+
+RelatedEvent::RelatedEvent(const AtomicString& eventType, const RelatedEventInit& initializer)
+ : Event(eventType, initializer)
+{
+ ScriptWrappable::init(this);
+}
+
+} // namespace WebCore
Inactive 2014/07/23 14:19:07 blink
pals 2014/07/24 10:49:25 Done.

Powered by Google App Engine
This is Rietveld 408576698