OLD | NEW |
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 227 |
228 bool ShellExtensionsBrowserClient::IsBackgroundUpdateAllowed() { | 228 bool ShellExtensionsBrowserClient::IsBackgroundUpdateAllowed() { |
229 return true; | 229 return true; |
230 } | 230 } |
231 | 231 |
232 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported( | 232 bool ShellExtensionsBrowserClient::IsMinBrowserVersionSupported( |
233 const std::string& min_version) { | 233 const std::string& min_version) { |
234 return true; | 234 return true; |
235 } | 235 } |
236 | 236 |
| 237 void ShellExtensionsBrowserClient::SaveImageDataToClipboard( |
| 238 const std::vector<char>& image_data, |
| 239 const std::string& type, |
| 240 const base::Closure& success_callback, |
| 241 const base::Closure& error_callback) {} |
| 242 |
237 void ShellExtensionsBrowserClient::SetAPIClientForTest( | 243 void ShellExtensionsBrowserClient::SetAPIClientForTest( |
238 ExtensionsAPIClient* api_client) { | 244 ExtensionsAPIClient* api_client) { |
239 api_client_.reset(api_client); | 245 api_client_.reset(api_client); |
240 } | 246 } |
241 | 247 |
242 ExtensionWebContentsObserver* | 248 ExtensionWebContentsObserver* |
243 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 249 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
244 content::WebContents* web_contents) { | 250 content::WebContents* web_contents) { |
245 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 251 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
246 } | 252 } |
247 | 253 |
248 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() { | 254 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() { |
249 if (!kiosk_delegate_) | 255 if (!kiosk_delegate_) |
250 kiosk_delegate_.reset(new ShellKioskDelegate()); | 256 kiosk_delegate_.reset(new ShellKioskDelegate()); |
251 return kiosk_delegate_.get(); | 257 return kiosk_delegate_.get(); |
252 } | 258 } |
253 | 259 |
254 } // namespace extensions | 260 } // namespace extensions |
OLD | NEW |