| // Copyright 2011 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_APP_MODAL_DIALOG_VIEW_H_ |
| #define COMPONENTS_JAVASCRIPT_DIALOGS_APP_MODAL_DIALOG_VIEW_H_ |
| namespace javascript_dialogs { |
| class AppModalDialogView { |
| virtual ~AppModalDialogView() = default; |
| virtual void ShowAppModalDialog() = 0; |
| virtual void ActivateAppModalDialog() = 0; |
| virtual void CloseAppModalDialog() = 0; |
| // Accepts or cancels the dialog. |
| virtual void AcceptAppModalDialog() = 0; |
| virtual void CancelAppModalDialog() = 0; |
| // Should return true when the dialog is being shown. |
| virtual bool IsShowing() const = 0; |
| } // namespace javascript_dialogs |
| #endif // COMPONENTS_JAVASCRIPT_DIALOGS_APP_MODAL_DIALOG_VIEW_H_ |