Removing flow to demote App Launcher to App Host, so app_host.exe can be deleted...
[chromium-blink-merge.git] / webkit / glue / webmenuitem.h
blob3b1e5d2e5b634d9d3fa19646a7f7da6bdc6975e6
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.
5 #ifndef WEBMENUITEM_H_
6 #define WEBMENUITEM_H_
8 #include <vector>
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 {
17 enum Type {
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.
25 WebMenuItem();
26 WebMenuItem(const WebKit::WebMenuItemInfo& item);
27 WebMenuItem(const WebMenuItem& item);
28 ~WebMenuItem();
30 string16 label;
31 string16 toolTip;
32 Type type;
33 unsigned action;
34 bool rtl;
35 bool has_directional_override;
36 bool enabled;
37 bool checked;
38 std::vector<WebMenuItem> submenu;
41 #endif // WEBMENUITEM_H_