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

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

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 | « content/public/common/menu_item.h ('k') | content/renderer/menu_item_builder.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 #include "content/public/common/menu_item.h" 5 #include "content/public/common/menu_item.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 MenuItem::MenuItem() 9 MenuItem::MenuItem()
10 : type(OPTION), 10 : type(OPTION),
11 action(0), 11 action(0),
12 rtl(false), 12 rtl(false),
13 has_directional_override(false), 13 has_directional_override(false),
14 enabled(false), 14 enabled(false),
15 checked(false) { 15 checked(false) {
16 } 16 }
17 17
18 MenuItem::MenuItem(const MenuItem& item) 18 MenuItem::MenuItem(const MenuItem& item)
19 : label(item.label), 19 : label(item.label),
20 icon(item.icon),
20 tool_tip(item.tool_tip), 21 tool_tip(item.tool_tip),
21 type(item.type), 22 type(item.type),
22 action(item.action), 23 action(item.action),
23 rtl(item.rtl), 24 rtl(item.rtl),
24 has_directional_override(item.has_directional_override), 25 has_directional_override(item.has_directional_override),
25 enabled(item.enabled), 26 enabled(item.enabled),
26 checked(item.checked), 27 checked(item.checked),
27 submenu(item.submenu) { 28 submenu(item.submenu) {
28 } 29 }
29 30
30 MenuItem::~MenuItem() { 31 MenuItem::~MenuItem() {
31 } 32 }
32 33
33 } // namespace content 34 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/menu_item.h ('k') | content/renderer/menu_item_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698