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

Unified Diff: extensions/browser/api/extensions_api_client.h

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Fix nits. Created 3 years, 11 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 | « extensions/browser/api/clipboard/clipboard_api.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index de6416729a5d14470215d3491916b462fdfd2a78..b9c5f8e2a667195152f6c8db92117ecea8e886be 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "extensions/browser/api/declarative_content/content_rules_registry.h"
#include "extensions/browser/api/storage/settings_namespace.h"
+#include "extensions/common/api/clipboard.h"
namespace base {
template <class T>
@@ -130,6 +131,15 @@ class ExtensionsAPIClient {
// MetricsPrivateAPI behavior.
virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate();
+#if defined(OS_CHROMEOS)
+ // Saves image data on clipboard.
+ virtual void SaveImageDataToClipboard(
+ const std::vector<char>& image_data,
+ api::clipboard::ImageType type,
+ const base::Closure& success_callback,
+ const base::Callback<void(const std::string&)>& error_callback);
+#endif
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};
« no previous file with comments | « extensions/browser/api/clipboard/clipboard_api.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698