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

Unified Diff: content/public/browser/render_frame_host.h

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments, merge Created 4 years, 6 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 | « content/common/view_messages.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/render_frame_host.h
diff --git a/content/public/browser/render_frame_host.h b/content/public/browser/render_frame_host.h
index e5d8841a4b3334de291855458d817e77950cdbe6..c49cf6bed53b6509da639b6c0e7ba66dc8cb38d1 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -165,6 +165,17 @@ class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
virtual void InsertVisualStateCallback(
const VisualStateCallback& callback) = 0;
+ // Copies the image at the location in viewport coordinates (not frame
+ // coordinates) to the clipboard. If there is no image at that location, does
+ // nothing.
+ virtual void CopyImageAt(int x, int y) = 0;
+
+ // Requests to save the image at the location in viewport coordinates (not
+ // frame coordinates). If there is an image at the location, the renderer
+ // will post back the appropriate download message to trigger the save UI.
+ // If there is no image at that location, does nothing.
+ virtual void SaveImageAt(int x, int y) = 0;
+
// RenderViewHost for this frame.
virtual RenderViewHost* GetRenderViewHost() = 0;
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698