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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 263453007: Implement "Save image as" for canvas (chromium side). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Causes the renderer to close the current page, including running its 85 // Causes the renderer to close the current page, including running its
86 // onunload event handler. A ClosePage_ACK message will be sent to the 86 // onunload event handler. A ClosePage_ACK message will be sent to the
87 // ResourceDispatcherHost when it is finished. 87 // ResourceDispatcherHost when it is finished.
88 virtual void ClosePage() = 0; 88 virtual void ClosePage() = 0;
89 89
90 // Copies the image at location x, y to the clipboard (if there indeed is an 90 // Copies the image at location x, y to the clipboard (if there indeed is an
91 // image at that location). 91 // image at that location).
92 virtual void CopyImageAt(int x, int y) = 0; 92 virtual void CopyImageAt(int x, int y) = 0;
93 93
94 // Saves the image at location x, y to the disk (if there indeed is an
95 // image at that location).
96 virtual void SaveImageAt(int x, int y) = 0;
97
94 // Notifies the listener that a directory enumeration is complete. 98 // Notifies the listener that a directory enumeration is complete.
95 virtual void DirectoryEnumerationFinished( 99 virtual void DirectoryEnumerationFinished(
96 int request_id, 100 int request_id,
97 const std::vector<base::FilePath>& files) = 0; 101 const std::vector<base::FilePath>& files) = 0;
98 102
99 // Tells the renderer not to add scrollbars with height and width below a 103 // Tells the renderer not to add scrollbars with height and width below a
100 // threshold. 104 // threshold.
101 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0; 105 virtual void DisableScrollbarsForThreshold(const gfx::Size& size) = 0;
102 106
103 // Notifies the renderer that a a drag operation that it started has ended, 107 // Notifies the renderer that a a drag operation that it started has ended,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 223
220 private: 224 private:
221 // This interface should only be implemented inside content. 225 // This interface should only be implemented inside content.
222 friend class RenderViewHostImpl; 226 friend class RenderViewHostImpl;
223 RenderViewHost() {} 227 RenderViewHost() {}
224 }; 228 };
225 229
226 } // namespace content 230 } // namespace content
227 231
228 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 232 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698