blob: a3e7021b6062f693fa69144a6e997a9d9f649ac5 [file] [log] [blame]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_
#define COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_
#include <string>
namespace javascript_dialogs {
class TabModalDialogView {
public:
virtual ~TabModalDialogView() = default;
// Closes the dialog without sending a callback. This is useful when the
// TabModalDialogManager needs to make this dialog go away so that it can
// respond to a call that requires it to make no callback or make a customized
// one.
virtual void CloseDialogWithoutCallback() = 0;
// Returns the current value of the user input for a prompt dialog.
virtual std::u16string GetUserInput() = 0;
};
} // namespace javascript_dialogs
#endif // COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_