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

Unified Diff: extensions/browser/extensions_browser_client.h

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Add a warning in clipboard.idl about the future deprecation plan. Created 4 years 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 5ddbde70f6bb7e88071e2e6b119ebeed6427e785..c69312df0131967244936311ecb595b449de8881 100644
--- a/extensions/browser/extensions_browser_client.h
+++ b/extensions/browser/extensions_browser_client.h
@@ -14,6 +14,7 @@
#include "content/public/browser/bluetooth_chooser.h"
#include "extensions/browser/extension_event_histogram_value.h"
#include "extensions/browser/extension_prefs_observer.h"
+#include "extensions/common/api/clipboard.h"
#include "extensions/common/view_type.h"
class ExtensionFunctionRegistry;
@@ -107,6 +108,14 @@ class ExtensionsBrowserClient {
// be extracted.
virtual std::string GetUserIdHashFromContext(
content::BrowserContext* context) = 0;
+
+ typedef base::Callback<void(const std::string&)> ErrorCallback;
Devlin 2016/12/16 02:26:16 prefer "using" syntax in new code. That said, for
jennyz 2016/12/19 07:01:36 Done.
+ // Saves image data on clipboard.
+ virtual void SaveImageDataToClipboard(
+ const std::vector<char>& image_data,
+ api::clipboard::ImageType type,
+ const base::Closure& success_callback,
+ const ErrorCallback& error_callback) = 0;
#endif
// Returns true if |context| corresponds to a guest session.

Powered by Google App Engine
This is Rietveld 408576698