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

Side by Side Diff: chrome/browser/ui/intents/web_intent_picker_controller.h

Issue 11035017: Mac Web Intents Part 15: Inline extension install prompt (model) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker.cc ('k') | chrome/browser/ui/intents/web_intent_picker_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698