Home | History | Annotate | Download | only in glue
      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       rtl(false),
     11       has_directional_override(false),
     12       enabled(false),
     13       checked(false) {
     14 }
     15 
     16 WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item)
     17     : label(item.label),
     18       type(static_cast<Type>(item.type)),
     19       action(item.action),
     20       rtl(item.textDirection == WebKit::WebTextDirectionRightToLeft),
     21       has_directional_override(item.hasTextDirectionOverride),
     22       enabled(item.enabled),
     23       checked(item.checked) {
     24 }
     25 
     26 WebMenuItem::WebMenuItem(const WebMenuItem& item)
     27     : label(item.label),
     28       type(item.type),
     29       action(item.action),
     30       rtl(item.rtl),
     31       has_directional_override(item.has_directional_override),
     32       enabled(item.enabled),
     33       checked(item.checked),
     34       submenu(item.submenu) {
     35 }
     36 
     37 WebMenuItem::~WebMenuItem() {}
     38