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

Unified Diff: Source/core/html/HTMLMenuitemElement.cpp

Issue 243403006: Implement contextmenu attribute with basic support of <menu> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/html/HTMLMenuitemElement.cpp
diff --git a/Source/core/html/HTMLMenuitemElement.cpp b/Source/core/html/HTMLMenuitemElement.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..cbedadb2908f6221cb08bed8510b0898c5baead5
--- /dev/null
+++ b/Source/core/html/HTMLMenuitemElement.cpp
@@ -0,0 +1,25 @@
+// 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/html/HTMLMenuitemElement.h"
+
+#include "HTMLNames.h"
+
+namespace WebCore {
+
+using namespace HTMLNames;
+
+inline HTMLMenuitemElement::HTMLMenuitemElement(Document& document)
esprehn 2014/06/20 08:39:57 Incorrect capitalization per the spec.
pals 2014/06/20 14:22:10 Done.
+ : HTMLElement(menuitemTag, document)
+{
+ ScriptWrappable::init(this);
+}
+
+PassRefPtr<HTMLMenuitemElement> HTMLMenuitemElement::create(Document& document)
+{
+ return adoptRef(new HTMLMenuitemElement(document));
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698