context_menu_params.cc revision 90dce4d38c5ff5333bea97d859d4e484e27edf0c
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 "content/public/common/context_menu_params.h" 6 7namespace content { 8 9const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max; 10 11CustomContextMenuContext::CustomContextMenuContext() 12 : is_pepper_menu(false), 13 request_id(0), 14 render_widget_id(kCurrentRenderWidget) { 15} 16 17ContextMenuParams::ContextMenuParams() 18 : media_type(WebKit::WebContextMenuData::MediaTypeNone), 19 x(0), 20 y(0), 21 is_image_blocked(false), 22 frame_id(0), 23 media_flags(0), 24 misspelling_hash(0), 25 speech_input_enabled(false), 26 spellcheck_enabled(false), 27 is_editable(false), 28#if defined(OS_MACOSX) 29 writing_direction_default( 30 WebKit::WebContextMenuData::CheckableMenuItemDisabled), 31 writing_direction_left_to_right( 32 WebKit::WebContextMenuData::CheckableMenuItemEnabled), 33 writing_direction_right_to_left( 34 WebKit::WebContextMenuData::CheckableMenuItemEnabled), 35#endif // OS_MACOSX 36 edit_flags(0), 37 referrer_policy(WebKit::WebReferrerPolicyDefault) { 38} 39 40ContextMenuParams::~ContextMenuParams() { 41} 42 43} // namespace content 44