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.
5 #include "content/public/common/context_menu_params.h"
9 const int32
CustomContextMenuContext::kCurrentRenderWidget
= kint32max
;
11 CustomContextMenuContext::CustomContextMenuContext()
12 : is_pepper_menu(false),
14 render_widget_id(kCurrentRenderWidget
) {
17 ContextMenuParams::ContextMenuParams()
18 : media_type(blink::WebContextMenuData::MediaTypeNone
),
21 has_image_contents(true),
24 spellcheck_enabled(false),
26 writing_direction_default(
27 blink::WebContextMenuData::CheckableMenuItemDisabled
),
28 writing_direction_left_to_right(
29 blink::WebContextMenuData::CheckableMenuItemEnabled
),
30 writing_direction_right_to_left(
31 blink::WebContextMenuData::CheckableMenuItemEnabled
),
33 referrer_policy(blink::WebReferrerPolicyDefault
),
34 source_type(ui::MENU_SOURCE_NONE
) {
37 ContextMenuParams::~ContextMenuParams() {
40 } // namespace content