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

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

Issue 1143183002: Proof of concept implementation of context based history filtering. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/history/history_tab_helper.cc ('k') | chrome/browser/resources/history/history.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index 6946015097b93dacbf13a47ebc89046237c42918..a265a06c32ce24a7b50e45df31fcdd7fc51b99ef 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -1383,6 +1383,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
case IDC_CONTENT_CONTEXT_SAVEAVAS:
case IDC_CONTENT_CONTEXT_SAVEIMAGEAS: {
+ embedder_web_contents_->SaveImage();
bool is_large_data_url = params_.has_image_contents &&
params_.src_url.is_empty();
if (params_.media_type == WebContextMenuData::MediaTypeCanvas ||
@@ -1538,6 +1539,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
}
case IDC_PRINT: {
+ embedder_web_contents_->Print();
#if defined(ENABLE_PRINTING)
if (params_.media_type != WebContextMenuData::MediaTypeNone) {
if (render_frame_host) {
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/resources/history/history.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698