summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmenuitem.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 01:16:46 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 01:16:46 +0000
commit09fb387aa28e997593d5d5c11cf4a5fb12258217 (patch)
tree18c92d7099ac4ca248ee5e2061aa3ea82b111eb7 /webkit/glue/webmenuitem.cc
parent06aca52af687c5d55794a56aa9e3d625ce6ea8ea (diff)
downloadchromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.zip
chromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.tar.gz
chromium_src-09fb387aa28e997593d5d5c11cf4a5fb12258217.tar.bz2
Cleanup everything but net/ for our first clang plugins.
BUG=none TEST=compiles Review URL: http://codereview.chromium.org/6250088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webmenuitem.cc')
-rw-r--r--webkit/glue/webmenuitem.cc31
1 files changed, 31 insertions, 0 deletions
diff --git a/webkit/glue/webmenuitem.cc b/webkit/glue/webmenuitem.cc
new file mode 100644
index 0000000..b1b9615
--- /dev/null
+++ b/webkit/glue/webmenuitem.cc
@@ -0,0 +1,31 @@
+// Copyright (c) 2011 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 "webkit/glue/webmenuitem.h"
+
+WebMenuItem::WebMenuItem()
+ : type(OPTION),
+ action(0),
+ enabled(false),
+ checked(false) {
+}
+
+WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item)
+ : label(item.label),
+ type(static_cast<Type>(item.type)),
+ action(item.action),
+ enabled(item.enabled),
+ checked(item.checked) {
+}
+
+WebMenuItem::WebMenuItem(const WebMenuItem& item)
+ : label(item.label),
+ type(item.type),
+ action(item.action),
+ enabled(item.enabled),
+ checked(item.checked),
+ submenu(item.submenu) {
+}
+
+WebMenuItem::~WebMenuItem() {}