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

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: Created 4 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
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 59aa0b8dce17189056d3afdb95dff802879bf8b0..5126458ef28c3aee1d137b8c05638811602cae74 100644
--- a/content/public/browser/render_frame_host.h
+++ b/content/public/browser/render_frame_host.h
@@ -173,6 +173,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;

Powered by Google App Engine
This is Rietveld 408576698