diff options
Diffstat (limited to 'chrome/browser/js_modal_dialog.h')
-rw-r--r-- | chrome/browser/js_modal_dialog.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/js_modal_dialog.h b/chrome/browser/js_modal_dialog.h index 51b9c81..65ed1ae 100644 --- a/chrome/browser/js_modal_dialog.h +++ b/chrome/browser/js_modal_dialog.h @@ -13,6 +13,14 @@ #include "chrome/common/notification_registrar.h" #include "net/base/cookie_monster.h" +#if defined(OS_MACOSX) +#if __OBJC__ +@class NSAlert; +#else +class NSAlert; +#endif +#endif + class ExtensionHost; class JavaScriptMessageBoxClient; @@ -56,6 +64,10 @@ class JavaScriptAppModalDialog : public AppModalDialog, return is_before_unload_dialog_; } +#if defined(OS_MACOSX) + virtual void CloseModalDialog(); +#endif + // Callbacks from NativeDialog when the user accepts or cancels the dialog. void OnCancel(); void OnAccept(const std::wstring& prompt_text, bool suppress_js_messages); @@ -75,6 +87,10 @@ class JavaScriptAppModalDialog : public AppModalDialog, // Initializes for notifications to listen. void InitNotifications(); +#if defined(OS_MACOSX) + NSAlert* dialog_; +#endif + NotificationRegistrar registrar_; // An implementation of the client interface to provide supporting methods |