summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webmenuitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webmenuitem.h')
-rw-r--r--webkit/glue/webmenuitem.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/glue/webmenuitem.h b/webkit/glue/webmenuitem.h
index f2eb448..c767bea 100644
--- a/webkit/glue/webmenuitem.h
+++ b/webkit/glue/webmenuitem.h
@@ -1,10 +1,12 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// 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.
#ifndef WEBMENUITEM_H_
#define WEBMENUITEM_H_
+#include <vector>
+
#include "base/string16.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h"
@@ -15,7 +17,8 @@ struct WebMenuItem {
OPTION = WebKit::WebMenuItemInfo::Option,
CHECKABLE_OPTION = WebKit::WebMenuItemInfo::CheckableOption,
GROUP = WebKit::WebMenuItemInfo::Group,
- SEPARATOR = WebKit::WebMenuItemInfo::Separator
+ SEPARATOR = WebKit::WebMenuItemInfo::Separator,
+ SUBMENU // This is currently only used by Pepper, not by WebKit.
};
string16 label;
@@ -23,6 +26,7 @@ struct WebMenuItem {
unsigned action;
bool enabled;
bool checked;
+ std::vector<WebMenuItem> submenu;
WebMenuItem() : type(OPTION), action(0), enabled(false), checked(false) {
}