summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-20 00:29:29 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-20 00:29:29 +0000
commita04aef09a3b4264a86f52f055c8593d8a8979798 (patch)
treeb056ed3022b84d6ae5841edeea470a56483f0138 /webkit/glue/context_menu.h
parent4616877c53ecaa15bf83cf5d98b4bf57148babf0 (diff)
downloadchromium_src-a04aef09a3b4264a86f52f055c8593d8a8979798.zip
chromium_src-a04aef09a3b4264a86f52f055c8593d8a8979798.tar.gz
chromium_src-a04aef09a3b4264a86f52f055c8593d8a8979798.tar.bz2
Disable the "Copy Image" context menu option when the user right-clicks a blocked image.
BUG=36021 TEST=Right-click a blocked image, "copy image" should be greyed out Review URL: http://codereview.chromium.org/651075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu.h')
-rw-r--r--webkit/glue/context_menu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/glue/context_menu.h b/webkit/glue/context_menu.h
index beced3f..4dfad8a 100644
--- a/webkit/glue/context_menu.h
+++ b/webkit/glue/context_menu.h
@@ -42,6 +42,9 @@ struct ContextMenuParams {
// video.
GURL src_url;
+ // This is true if the context menu was invoked on a blocked image.
+ bool is_image_blocked;
+
// This is the URL of the top level page that the context menu was invoked
// on.
GURL page_url;
@@ -102,6 +105,7 @@ struct ContextMenuParams {
link_url(data.linkURL),
unfiltered_link_url(data.linkURL),
src_url(data.srcURL),
+ is_image_blocked(data.isImageBlocked),
page_url(data.pageURL),
frame_url(data.frameURL),
media_flags(data.mediaFlags),