| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 const ExtensionIconAvailableCallback& callback, | 236 const ExtensionIconAvailableCallback& callback, |
| 237 const base::Closure& unavailable_callback); | 237 const base::Closure& unavailable_callback); |
| 238 | 238 |
| 239 // Called when an extension's icon is successfully decoded and resized. | 239 // Called when an extension's icon is successfully decoded and resized. |
| 240 void OnExtensionIconAvailable(const std::string& extension_id, | 240 void OnExtensionIconAvailable(const std::string& extension_id, |
| 241 const gfx::Image& icon_image); | 241 const gfx::Image& icon_image); |
| 242 | 242 |
| 243 // Called when an extension's icon failed to be decoded or resized. | 243 // Called when an extension's icon failed to be decoded or resized. |
| 244 void OnExtensionIconUnavailable(const std::string& extension_id); | 244 void OnExtensionIconUnavailable(const std::string& extension_id); |
| 245 | 245 |
| 246 // Called to show a custom extension install dialog. |
| 247 void OnShowExtensionInstallDialog( |
| 248 gfx::NativeWindow parent, |
| 249 content::PageNavigator* navigator, |
| 250 ExtensionInstallPrompt::Delegate* delegate, |
| 251 const ExtensionInstallPrompt::Prompt& prompt); |
| 252 |
| 246 // Signals that a picker event has occurred. | 253 // Signals that a picker event has occurred. |
| 247 void OnPickerEvent(WebIntentPickerEvent event); | 254 void OnPickerEvent(WebIntentPickerEvent event); |
| 248 | 255 |
| 249 // Decrements the |pending_async_count_| and notifies the picker if it | 256 // Decrements the |pending_async_count_| and notifies the picker if it |
| 250 // reaches zero. | 257 // reaches zero. |
| 251 void AsyncOperationFinished(); | 258 void AsyncOperationFinished(); |
| 252 | 259 |
| 253 // Invoke the specified service at |service_url| with chosen |disposition|. | 260 // Invoke the specified service at |service_url| with chosen |disposition|. |
| 254 void InvokeService(const WebIntentPickerModel::InstalledService& service); | 261 void InvokeService(const WebIntentPickerModel::InstalledService& service); |
| 255 | 262 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // Factory used to obtain instance of native services. | 370 // Factory used to obtain instance of native services. |
| 364 scoped_ptr<web_intents::NativeServiceFactory> native_services_; | 371 scoped_ptr<web_intents::NativeServiceFactory> native_services_; |
| 365 | 372 |
| 366 // The ID of a pending extension download. | 373 // The ID of a pending extension download. |
| 367 content::DownloadId download_id_; | 374 content::DownloadId download_id_; |
| 368 | 375 |
| 369 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); | 376 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); |
| 370 }; | 377 }; |
| 371 | 378 |
| 372 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ | 379 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ |
| OLD | NEW |