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

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: 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const ExtensionIconAvailableCallback& callback, 221 const ExtensionIconAvailableCallback& callback,
222 const base::Closure& unavailable_callback); 222 const base::Closure& unavailable_callback);
223 223
224 // Called when an extension's icon is successfully decoded and resized. 224 // Called when an extension's icon is successfully decoded and resized.
225 void OnExtensionIconAvailable(const std::string& extension_id, 225 void OnExtensionIconAvailable(const std::string& extension_id,
226 const gfx::Image& icon_image); 226 const gfx::Image& icon_image);
227 227
228 // Called when an extension's icon failed to be decoded or resized. 228 // Called when an extension's icon failed to be decoded or resized.
229 void OnExtensionIconUnavailable(const std::string& extension_id); 229 void OnExtensionIconUnavailable(const std::string& extension_id);
230 230
231 // Called to show a cusotm extension install dialog.
232 void OnShowExtensionInstallDialog(
233 gfx::NativeWindow parent,
234 content::PageNavigator* navigator,
235 ExtensionInstallPrompt::Delegate* delegate,
236 const ExtensionInstallPrompt::Prompt& prompt);
237
231 // Signals that a picker event has occurred. 238 // Signals that a picker event has occurred.
232 void OnPickerEvent(WebIntentPickerEvent event); 239 void OnPickerEvent(WebIntentPickerEvent event);
233 240
234 // Decrements the |pending_async_count_| and notifies the picker if it 241 // Decrements the |pending_async_count_| and notifies the picker if it
235 // reaches zero. 242 // reaches zero.
236 void AsyncOperationFinished(); 243 void AsyncOperationFinished();
237 244
238 // Invoke the specified service at |service_url| with chosen |disposition|. 245 // Invoke the specified service at |service_url| with chosen |disposition|.
239 void InvokeService(const WebIntentPickerModel::InstalledService& service); 246 void InvokeService(const WebIntentPickerModel::InstalledService& service);
240 247
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // |intents_dispatcher_| is set. 351 // |intents_dispatcher_| is set.
345 web_intents::UMABucket uma_bucket_; 352 web_intents::UMABucket uma_bucket_;
346 353
347 // The ID of a pending extension download. 354 // The ID of a pending extension download.
348 content::DownloadId download_id_; 355 content::DownloadId download_id_;
349 356
350 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController); 357 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerController);
351 }; 358 };
352 359
353 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_ 360 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_PICKER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698