Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: content/public/common/context_menu_params.cc

Issue 23200006: Don't show the search-by-image menu item when the image is blocked (no image pixel data) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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/context_menu_params.h" 5 #include "content/public/common/context_menu_params.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max; 9 const int32 CustomContextMenuContext::kCurrentRenderWidget = kint32max;
10 10
11 CustomContextMenuContext::CustomContextMenuContext() 11 CustomContextMenuContext::CustomContextMenuContext()
12 : is_pepper_menu(false), 12 : is_pepper_menu(false),
13 request_id(0), 13 request_id(0),
14 render_widget_id(kCurrentRenderWidget) { 14 render_widget_id(kCurrentRenderWidget) {
15 } 15 }
16 16
17 ContextMenuParams::ContextMenuParams() 17 ContextMenuParams::ContextMenuParams()
18 : media_type(WebKit::WebContextMenuData::MediaTypeNone), 18 : media_type(WebKit::WebContextMenuData::MediaTypeNone),
19 x(0), 19 x(0),
20 y(0), 20 y(0),
21 is_image_blocked(false), 21 has_image_contents(true),
22 frame_id(0), 22 frame_id(0),
23 media_flags(0), 23 media_flags(0),
24 misspelling_hash(0), 24 misspelling_hash(0),
25 speech_input_enabled(false), 25 speech_input_enabled(false),
26 spellcheck_enabled(false), 26 spellcheck_enabled(false),
27 is_editable(false), 27 is_editable(false),
28 #if defined(OS_MACOSX) 28 #if defined(OS_MACOSX)
29 writing_direction_default( 29 writing_direction_default(
30 WebKit::WebContextMenuData::CheckableMenuItemDisabled), 30 WebKit::WebContextMenuData::CheckableMenuItemDisabled),
31 writing_direction_left_to_right( 31 writing_direction_left_to_right(
32 WebKit::WebContextMenuData::CheckableMenuItemEnabled), 32 WebKit::WebContextMenuData::CheckableMenuItemEnabled),
33 writing_direction_right_to_left( 33 writing_direction_right_to_left(
34 WebKit::WebContextMenuData::CheckableMenuItemEnabled), 34 WebKit::WebContextMenuData::CheckableMenuItemEnabled),
35 #endif // OS_MACOSX 35 #endif // OS_MACOSX
36 edit_flags(0), 36 edit_flags(0),
37 referrer_policy(WebKit::WebReferrerPolicyDefault) { 37 referrer_policy(WebKit::WebReferrerPolicyDefault) {
38 } 38 }
39 39
40 ContextMenuParams::~ContextMenuParams() { 40 ContextMenuParams::~ContextMenuParams() {
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/context_menu_params.h ('k') | content/renderer/context_menu_params_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698