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

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

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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
7 7
8 #include <string>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/basictypes.h" 11 #include "base/basictypes.h"
11 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "content/public/common/menu_item.h" 14 #include "content/public/common/menu_item.h"
14 #include "content/public/common/page_state.h" 15 #include "content/public/common/page_state.h"
15 #include "content/public/common/ssl_status.h" 16 #include "content/public/common/ssl_status.h"
16 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" 17 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
17 #include "third_party/WebKit/public/web/WebContextMenuData.h" 18 #include "third_party/WebKit/public/web/WebContextMenuData.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 66
66 // The link URL to be used ONLY for "copy link address". We don't validate 67 // The link URL to be used ONLY for "copy link address". We don't validate
67 // this field in the frontend process. 68 // this field in the frontend process.
68 GURL unfiltered_link_url; 69 GURL unfiltered_link_url;
69 70
70 // This is the source URL for the element that the context menu was 71 // This is the source URL for the element that the context menu was
71 // invoked on. Example of elements with source URLs are img, audio, and 72 // invoked on. Example of elements with source URLs are img, audio, and
72 // video. 73 // video.
73 GURL src_url; 74 GURL src_url;
74 75
75 // This is true if the context menu was invoked on a blocked image. 76 // This is true if the context menu was invoked on an image which has
76 bool is_image_blocked; 77 // non-empty contents.
78 bool has_image_contents;
77 79
78 // This is the URL of the top level page that the context menu was invoked 80 // This is the URL of the top level page that the context menu was invoked
79 // on. 81 // on.
80 GURL page_url; 82 GURL page_url;
81 83
82 // This is the absolute keyword search URL including the %s search tag when 84 // This is the absolute keyword search URL including the %s search tag when
83 // the "Add as search engine..." option is clicked (left empty if not used). 85 // the "Add as search engine..." option is clicked (left empty if not used).
84 GURL keyword_url; 86 GURL keyword_url;
85 87
86 // This is the URL of the subframe that the context menu was invoked on. 88 // This is the URL of the subframe that the context menu was invoked on.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 std::vector<MenuItem> custom_items; 149 std::vector<MenuItem> custom_items;
148 150
149 ui::MenuSourceType source_type; 151 ui::MenuSourceType source_type;
150 152
151 #if defined(OS_ANDROID) 153 #if defined(OS_ANDROID)
152 // Points representing the coordinates in the document space of the start and 154 // Points representing the coordinates in the document space of the start and
153 // end of the selection, if there is one. 155 // end of the selection, if there is one.
154 gfx::Point selection_start; 156 gfx::Point selection_start;
155 gfx::Point selection_end; 157 gfx::Point selection_end;
156 #endif 158 #endif
157
158 }; 159 };
159 160
160 } // namespace content 161 } // namespace content
161 162
162 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 163 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698