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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 164279: View Background Image Feature (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.cc
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.cc (revision 21856)
+++ chrome/browser/tab_contents/render_view_context_menu.cc (working copy)
@@ -180,6 +180,7 @@
AppendMenuItem(IDS_CONTENT_CONTEXT_PRINT);
AppendMenuItem(IDS_CONTENT_CONTEXT_VIEWPAGESOURCE);
AppendMenuItem(IDS_CONTENT_CONTEXT_VIEWPAGEINFO);
+ AppendMenuItem(IDS_CONTENT_CONTEXT_VIEWBKGIMG);
}
void RenderViewContextMenu::AppendFrameItems() {
@@ -351,6 +352,10 @@
return (params_.media_params.player_state &
ContextMenuMediaParams::IN_ERROR) == 0;
+ //Background Image Info
+ case IDS_CONTENT_CONTEXT_VIEWBKGIMG:
+ return params_.bkg_url.is_valid();
+
case IDS_CONTENT_CONTEXT_SAVESCREENSHOTAS:
// TODO(ajwong): Enable save screenshot after we actually implement
// this.
@@ -505,6 +510,9 @@
OpenURL(params_.link_url, OFF_THE_RECORD, PageTransition::LINK);
break;
+ case IDS_CONTENT_CONTEXT_VIEWBKGIMG:
+ OpenURL(params_.bkg_url, NEW_FOREGROUND_TAB, PageTransition::LINK);
+ break;
case IDS_CONTENT_CONTEXT_SAVEAUDIOAS:
case IDS_CONTENT_CONTEXT_SAVEVIDEOAS:
case IDS_CONTENT_CONTEXT_SAVEIMAGEAS:
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698