app_modal_dialog_view.h 929 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2011 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_APP_MODAL_DIALOG_VIEW_H_
  5. #define COMPONENTS_JAVASCRIPT_DIALOGS_APP_MODAL_DIALOG_VIEW_H_
  6. namespace javascript_dialogs {
  7. class AppModalDialogView {
  8. public:
  9. virtual ~AppModalDialogView() {}
  10. // Shows the dialog.
  11. virtual void ShowAppModalDialog() = 0;
  12. // Activates the dialog.
  13. virtual void ActivateAppModalDialog() = 0;
  14. // Closes the dialog.
  15. virtual void CloseAppModalDialog() = 0;
  16. // Accepts or cancels the dialog.
  17. virtual void AcceptAppModalDialog() = 0;
  18. virtual void CancelAppModalDialog() = 0;
  19. // Should return true when the dialog is being shown.
  20. virtual bool IsShowing() const = 0;
  21. };
  22. } // namespace javascript_dialogs
  23. #endif // COMPONENTS_JAVASCRIPT_DIALOGS_APP_MODAL_DIALOG_VIEW_H_