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

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

Powered by Google App Engine
This is Rietveld 408576698