Evan Stade | 4b55d202 | 2020-02-06 17:29:06 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_ |
| 6 | #define COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_ |
| 7 | |
| 8 | #include "base/strings/string16.h" |
| 9 | |
| 10 | namespace javascript_dialogs { |
| 11 | |
| 12 | class TabModalDialogView { |
| 13 | public: |
| 14 | virtual ~TabModalDialogView() {} |
| 15 | |
| 16 | // Closes the dialog without sending a callback. This is useful when the |
| 17 | // TabModalDialogManager needs to make this dialog go away so that it can |
| 18 | // respond to a call that requires it to make no callback or make a customized |
| 19 | // one. |
| 20 | virtual void CloseDialogWithoutCallback() = 0; |
| 21 | |
| 22 | // Returns the current value of the user input for a prompt dialog. |
| 23 | virtual base::string16 GetUserInput() = 0; |
| 24 | }; |
| 25 | |
| 26 | } // namespace javascript_dialogs |
| 27 | |
| 28 | #endif // COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_ |