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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "extensions/browser/api/declarative_content/content_rules_registry.h" 12 #include "extensions/browser/api/declarative_content/content_rules_registry.h"
13 #include "extensions/browser/api/storage/settings_namespace.h" 13 #include "extensions/browser/api/storage/settings_namespace.h"
14 #include "extensions/common/api/clipboard.h"
14 15
15 namespace base { 16 namespace base {
16 template <class T> 17 template <class T>
17 class ObserverListThreadSafe; 18 class ObserverListThreadSafe;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 class BrowserContext; 22 class BrowserContext;
22 class WebContents; 23 class WebContents;
23 } 24 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual std::unique_ptr<VirtualKeyboardDelegate> 124 virtual std::unique_ptr<VirtualKeyboardDelegate>
124 CreateVirtualKeyboardDelegate() const; 125 CreateVirtualKeyboardDelegate() const;
125 126
126 // Creates a delegate for handling the management extension api. 127 // Creates a delegate for handling the management extension api.
127 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; 128 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const;
128 129
129 // If supported by the embedder, returns a delegate for embedder-dependent 130 // If supported by the embedder, returns a delegate for embedder-dependent
130 // MetricsPrivateAPI behavior. 131 // MetricsPrivateAPI behavior.
131 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate(); 132 virtual MetricsPrivateDelegate* GetMetricsPrivateDelegate();
132 133
134 #if defined(OS_CHROMEOS)
135 // Saves image data on clipboard.
136 virtual void SaveImageDataToClipboard(
137 const std::vector<char>& image_data,
138 api::clipboard::ImageType type,
139 const base::Closure& success_callback,
140 const base::Callback<void(const std::string&)>& error_callback);
141 #endif
142
133 // NOTE: If this interface gains too many methods (perhaps more than 20) it 143 // NOTE: If this interface gains too many methods (perhaps more than 20) it
134 // should be split into one interface per API. 144 // should be split into one interface per API.
135 }; 145 };
136 146
137 } // namespace extensions 147 } // namespace extensions
138 148
139 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 149 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« 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