diff options
Diffstat (limited to 'components/app_modal/native_app_modal_dialog.h')
-rw-r--r-- | components/app_modal/native_app_modal_dialog.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/components/app_modal/native_app_modal_dialog.h b/components/app_modal/native_app_modal_dialog.h new file mode 100644 index 0000000..192619a --- /dev/null +++ b/components/app_modal/native_app_modal_dialog.h @@ -0,0 +1,32 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ +#define COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ + +#include "ui/gfx/native_widget_types.h" + +class JavaScriptAppModalDialog; + +class NativeAppModalDialog { + public: + // Returns the buttons to be shown. See ui::DialogButton for which buttons can + // be returned. + virtual int GetAppModalDialogButtons() const = 0; + + // Shows the dialog. + virtual void ShowAppModalDialog() = 0; + + // Activates the dialog. + virtual void ActivateAppModalDialog() = 0; + + // Closes the dialog. + virtual void CloseAppModalDialog() = 0; + + // Accepts or cancels the dialog. + virtual void AcceptAppModalDialog() = 0; + virtual void CancelAppModalDialog() = 0; +}; + +#endif // COMPONENTS_APP_MODAL_NATIVE_APP_MODAL_DIALOG_H_ |