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

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: Addressed review comments 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/html/HTMLMenuItemElement.cpp
diff --git a/Source/core/html/HTMLMenuItemElement.cpp b/Source/core/html/HTMLMenuItemElement.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..5e039aa550802d5e2b5e9235993c72aa0bfc4910
--- /dev/null
+++ b/Source/core/html/HTMLMenuItemElement.cpp
@@ -0,0 +1,22 @@
+// 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 "core/HTMLNames.h"
+
+namespace blink {
+
+using namespace HTMLNames;
tkent 2014/07/31 06:07:55 This is used only once. Please remove this line, a
pals 2014/08/01 10:03:07 Done.
+
+inline HTMLMenuItemElement::HTMLMenuItemElement(Document& document)
+ : HTMLElement(menuitemTag, document)
+{
+ ScriptWrappable::init(this);
+}
+
+DEFINE_NODE_FACTORY(HTMLMenuItemElement)
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698