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

Unified Diff: extensions/browser/extensions_browser_client.h

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Add a string for prompting clipboard write permission for installing chrome.clipboard. Created 4 years, 3 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: extensions/browser/extensions_browser_client.h
diff --git a/extensions/browser/extensions_browser_client.h b/extensions/browser/extensions_browser_client.h
index c27ae730663b75f95d0985b78f29ba111fdff8ee..0c227eaebb6d9f3e8d97d113bfad90e338915475 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -222,6 +222,13 @@ class ExtensionsBrowserClient {
// is left up to the embedder.
virtual bool IsMinBrowserVersionSupported(const std::string& min_version) = 0;
+ // Saves image data on clipboard.
+ virtual void SaveImageDataToClipboard(
+ const std::vector<char>& image_data,
+ const std::string& type,
+ const base::Closure& success_callback,
+ const base::Closure& error_callback) = 0;
+
// Embedders can override this function to handle extension errors.
virtual void ReportError(content::BrowserContext* context,
std::unique_ptr<ExtensionError> error);

Powered by Google App Engine
This is Rietveld 408576698