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

Unified Diff: chrome/browser/ui/browser_dialogs.h

Issue 2644793006: Add picker view for Web Share Target. (Closed)
Patch Set: Fix comment. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_dialogs.h
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h
index 6d2df0169030a256d3899b473bd0899e5bc1b1ff..aa4335d8a53775b43d1f7dc10ad2c1e79d00d2a4 100644
--- a/chrome/browser/ui/browser_dialogs.h
+++ b/chrome/browser/ui/browser_dialogs.h
@@ -152,6 +152,14 @@ void ShowBookmarkEditorViews(gfx::NativeWindow parent_window,
void ShowPaymentRequestDialog(payments::PaymentRequest* request);
+// Shows the dialog to choose a share target app. |targets| is a list of app
+// titles that will be shown in a list. Calls |callback| with true if an app was
+// chosen, or false if the dialog was cancelled.
+// TODO(mgiuca): Callback should provide info about the picked app.
+void ShowWebShareTargetPickerDialog(gfx::NativeWindow parent_window,
+ const std::vector<base::string16>& targets,
+ const base::Callback<void(bool)>& callback);
+
#if defined(OS_MACOSX)
// This is a class so that it can be friended from ContentSettingBubbleContents,

Powered by Google App Engine
This is Rietveld 408576698