Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Yasmin | 78e32eccc | 2019-08-02 14:54:33 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Hira Mahmood | 0f3c35a8 | 2024-07-31 15:43:26 | [diff] [blame] | 5 | #ifndef COMPONENTS_SHARING_MESSAGE_SHARING_DIALOG_H_ |
| 6 | #define COMPONENTS_SHARING_MESSAGE_SHARING_DIALOG_H_ |
Yasmin | 78e32eccc | 2019-08-02 14:54:33 | [diff] [blame] | 7 | |
| 8 | // The cross-platform UI interface which displays the sharing dialog. |
| 9 | // This object is responsible for its own lifetime. |
| 10 | class SharingDialog { |
| 11 | public: |
Himanshu Jaju | 03f6869 | 2019-12-03 11:10:07 | [diff] [blame] | 12 | virtual ~SharingDialog() = default; |
| 13 | |
Yasmin | 78e32eccc | 2019-08-02 14:54:33 | [diff] [blame] | 14 | // Called to close the dialog and prevent future callbacks into the |
| 15 | // controller. |
| 16 | virtual void Hide() = 0; |
| 17 | }; |
| 18 | |
Hira Mahmood | 0f3c35a8 | 2024-07-31 15:43:26 | [diff] [blame] | 19 | #endif // COMPONENTS_SHARING_MESSAGE_SHARING_DIALOG_H_ |