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

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

Issue 2644793006: Add picker view for Web Share Target. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/webshare/webshare_target_picker_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_dialogs.h
diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h
index 66d37aa401b74c7efd73d0b682c6ca1523be30b8..2cdf3e1ee738966c8ad0ab7da083a080a545c388 100644
--- a/chrome/browser/ui/browser_dialogs.h
+++ b/chrome/browser/ui/browser_dialogs.h
@@ -12,6 +12,7 @@
#include "base/callback.h"
#include "build/build_config.h"
#include "chrome/browser/ui/bookmarks/bookmark_editor.h"
+#include "chrome/browser/webshare/share_service_impl.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/native_widget_types.h"
@@ -157,6 +158,15 @@ void ShowBookmarkEditorViews(gfx::NativeWindow parent_window,
payments::PaymentRequestDialog* CreatePaymentRequestDialog(
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 SHARE if an app
+// was chosen, or CANCEL 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(SharePickerResult)>& callback);
+
#if defined(OS_MACOSX)
// This is a class so that it can be friended from ContentSettingBubbleContents,
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/webshare/webshare_target_picker_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698