OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "webkit/glue/webmenuitem.h" |
| 6 |
| 7 WebMenuItem::WebMenuItem() |
| 8 : type(OPTION), |
| 9 action(0), |
| 10 enabled(false), |
| 11 checked(false) { |
| 12 } |
| 13 |
| 14 WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item) |
| 15 : label(item.label), |
| 16 type(static_cast<Type>(item.type)), |
| 17 action(item.action), |
| 18 enabled(item.enabled), |
| 19 checked(item.checked) { |
| 20 } |
| 21 |
| 22 WebMenuItem::WebMenuItem(const WebMenuItem& item) |
| 23 : label(item.label), |
| 24 type(item.type), |
| 25 action(item.action), |
| 26 enabled(item.enabled), |
| 27 checked(item.checked), |
| 28 submenu(item.submenu) { |
| 29 } |
| 30 |
| 31 WebMenuItem::~WebMenuItem() {} |
OLD | NEW |