commit | 12f6a07f162f132c587332510926e50c3b23f998 | [log] [tgz] |
---|---|---|
author | Melissa Zhang <[email protected]> | Wed Sep 30 21:16:07 2020 |
committer | Commit Bot <[email protected]> | Wed Sep 30 21:16:07 2020 |
tree | da91dfff6c751c7ad53101472ba7e68ea27adb68 | |
parent | 6253282724fbd7bf81609d087ae64e46c75bf2fc [diff] [blame] |
[Sharesheet] Callback on Sharesheet close. This CL adds a callback when the sharesheet closes. Bug:1126788 Change-Id: Ibc5e0a0d3d0f431139af5d0d783ad398646713f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2434078 Commit-Queue: Eric Willigers <[email protected]> Reviewed-by: Luciano Pacheco <[email protected]> Reviewed-by: Dominick Ng <[email protected]> Reviewed-by: Maggie Cai <[email protected]> Reviewed-by: Eric Willigers <[email protected]> Cr-Commit-Position: refs/heads/master@{#812342}
diff --git a/chrome/browser/sharesheet/sharesheet_service_delegate.h b/chrome/browser/sharesheet/sharesheet_service_delegate.h index 4a3fdbb0d..47f15a6 100644 --- a/chrome/browser/sharesheet/sharesheet_service_delegate.h +++ b/chrome/browser/sharesheet/sharesheet_service_delegate.h
@@ -7,6 +7,7 @@ #include <memory> +#include "base/callback.h" #include "base/strings/string16.h" #include "chrome/browser/sharesheet/sharesheet_controller.h" #include "chrome/browser/sharesheet/sharesheet_types.h" @@ -40,7 +41,8 @@ delete; void ShowBubble(std::vector<TargetInfo> targets, - apps::mojom::IntentPtr intent); + apps::mojom::IntentPtr intent, + sharesheet::CloseCallback close_callback); void OnBubbleClosed(const base::string16& active_action); void OnTargetSelected(const base::string16& target_name, const TargetType type,