blob: 0cfdc22e825ff298fd99b77a2892271df6c99909 [file] [log] [blame]
Evan Stade4b55d2022020-02-06 17:29:061// 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
10namespace javascript_dialogs {
11
12class 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_