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

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 2379573008: Add SetImageData api to chrome.clipboard. (Closed)
Patch Set: Fix interactive_ui_tests issue. Created 4 years, 1 month 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 #include "extensions/shell/browser/shell_extensions_browser_client.h" 5 #include "extensions/shell/browser/shell_extensions_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 bool ShellExtensionsBrowserClient::IsBackgroundUpdateAllowed() { 230 bool ShellExtensionsBrowserClient::IsBackgroundUpdateAllowed() {
231 return true; 231 return true;
232 } 232 }
233 233
234 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported( 234 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported(
235 const std::string& min_version) { 235 const std::string& min_version) {
236 return true; 236 return true;
237 } 237 }
238 238
239 void ShellExtensionsBrowserClient::SaveImageDataToClipboard(
240 const std::vector<char>& image_data,
241 clipboard::ImageType type,
242 const base::Closure& success_callback,
243 const base::Closure& error_callback) {}
244
239 void ShellExtensionsBrowserClient::SetAPIClientForTest( 245 void ShellExtensionsBrowserClient::SetAPIClientForTest(
240 ExtensionsAPIClient* api_client) { 246 ExtensionsAPIClient* api_client) {
241 api_client_.reset(api_client); 247 api_client_.reset(api_client);
242 } 248 }
243 249
244 ExtensionWebContentsObserver* 250 ExtensionWebContentsObserver*
245 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( 251 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver(
246 content::WebContents* web_contents) { 252 content::WebContents* web_contents) {
247 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); 253 return ShellExtensionWebContentsObserver::FromWebContents(web_contents);
248 } 254 }
(...skipping 12 matching lines...) Expand all
261 return navigation_data->GetExtensionNavigationUIData(); 267 return navigation_data->GetExtensionNavigationUIData();
262 } 268 }
263 269
264 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() { 270 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() {
265 if (!kiosk_delegate_) 271 if (!kiosk_delegate_)
266 kiosk_delegate_.reset(new ShellKioskDelegate()); 272 kiosk_delegate_.reset(new ShellKioskDelegate());
267 return kiosk_delegate_.get(); 273 return kiosk_delegate_.get();
268 } 274 }
269 275
270 } // namespace extensions 276 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698