1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
10 #include "base/string16.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h"
12 #include "webkit/glue/webkit_glue_export.h"
14 // Container for information about entries in an HTML select popup menu and
15 // custom entries of the context menu.
16 struct WEBKIT_GLUE_EXPORT WebMenuItem
{
18 OPTION
= WebKit::WebMenuItemInfo::Option
,
19 CHECKABLE_OPTION
= WebKit::WebMenuItemInfo::CheckableOption
,
20 GROUP
= WebKit::WebMenuItemInfo::Group
,
21 SEPARATOR
= WebKit::WebMenuItemInfo::Separator
,
22 SUBMENU
// This is currently only used by Pepper, not by WebKit.
26 WebMenuItem(const WebKit::WebMenuItemInfo
& item
);
27 WebMenuItem(const WebMenuItem
& item
);
35 bool has_directional_override
;
38 std::vector
<WebMenuItem
> submenu
;
41 #endif // WEBMENUITEM_H_