tab_modal_dialog_view.h 930 B

1234567891011121314151617181920212223242526272829
  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. #ifndef COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_
  5. #define COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_
  6. #include <string>
  7. namespace javascript_dialogs {
  8. class TabModalDialogView {
  9. public:
  10. virtual ~TabModalDialogView() {}
  11. // Closes the dialog without sending a callback. This is useful when the
  12. // TabModalDialogManager needs to make this dialog go away so that it can
  13. // respond to a call that requires it to make no callback or make a customized
  14. // one.
  15. virtual void CloseDialogWithoutCallback() = 0;
  16. // Returns the current value of the user input for a prompt dialog.
  17. virtual std::u16string GetUserInput() = 0;
  18. };
  19. } // namespace javascript_dialogs
  20. #endif // COMPONENTS_JAVASCRIPT_DIALOGS_TAB_MODAL_DIALOG_VIEW_H_