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

Side by Side Diff: content/public/common/menu_item.h

Issue 805153005: Updating MakeMenuItemStringsFor() to test icon attribute of menuitems. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/public/common/menu_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_MENU_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_MENU_ITEM_H_
6 #define CONTENT_PUBLIC_COMMON_MENU_ITEM_H_ 6 #define CONTENT_PUBLIC_COMMON_MENU_ITEM_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 11 matching lines...) Expand all
22 GROUP = blink::WebMenuItemInfo::Group, 22 GROUP = blink::WebMenuItemInfo::Group,
23 SEPARATOR = blink::WebMenuItemInfo::Separator, 23 SEPARATOR = blink::WebMenuItemInfo::Separator,
24 SUBMENU // This is currently only used by Pepper, not by WebKit. 24 SUBMENU // This is currently only used by Pepper, not by WebKit.
25 }; 25 };
26 26
27 MenuItem(); 27 MenuItem();
28 MenuItem(const MenuItem& item); 28 MenuItem(const MenuItem& item);
29 ~MenuItem(); 29 ~MenuItem();
30 30
31 base::string16 label; 31 base::string16 label;
32 base::string16 icon;
32 base::string16 tool_tip; 33 base::string16 tool_tip;
33 Type type; 34 Type type;
34 unsigned action; 35 unsigned action;
35 bool rtl; 36 bool rtl;
36 bool has_directional_override; 37 bool has_directional_override;
37 bool enabled; 38 bool enabled;
38 bool checked; 39 bool checked;
39 std::vector<MenuItem> submenu; 40 std::vector<MenuItem> submenu;
40 }; 41 };
41 42
42 } // namespace content 43 } // namespace content
43 44
44 #endif // CONTENT_PUBLIC_COMMON_MENU_ITEM_H_ 45 #endif // CONTENT_PUBLIC_COMMON_MENU_ITEM_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/common/menu_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698