diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:29:29 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-20 00:29:29 +0000 |
commit | a04aef09a3b4264a86f52f055c8593d8a8979798 (patch) | |
tree | b056ed3022b84d6ae5841edeea470a56483f0138 /chrome/common | |
parent | 4616877c53ecaa15bf83cf5d98b4bf57148babf0 (diff) | |
download | chromium_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.h | 2 |
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) && |