summaryrefslogtreecommitdiffstats
path: root/chrome/common
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 /chrome/common
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 'chrome/common')
-rw-r--r--chrome/common/render_messages.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index d610dac..41f2567 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -1071,6 +1071,7 @@ struct ParamTraits<ContextMenuParams> {
WriteParam(m, p.link_url);
WriteParam(m, p.unfiltered_link_url);
WriteParam(m, p.src_url);
+ WriteParam(m, p.is_image_blocked);
WriteParam(m, p.page_url);
WriteParam(m, p.frame_url);
WriteParam(m, p.media_flags);
@@ -1097,6 +1098,7 @@ struct ParamTraits<ContextMenuParams> {
ReadParam(m, iter, &p->link_url) &&
ReadParam(m, iter, &p->unfiltered_link_url) &&
ReadParam(m, iter, &p->src_url) &&
+ ReadParam(m, iter, &p->is_image_blocked) &&
ReadParam(m, iter, &p->page_url) &&
ReadParam(m, iter, &p->frame_url) &&
ReadParam(m, iter, &p->media_flags) &&