OLD | NEW |
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 |
OLD | NEW |