diff options
Diffstat (limited to 'content/shell/shell_javascript_dialog_creator.h')
-rw-r--r-- | content/shell/shell_javascript_dialog_creator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/shell/shell_javascript_dialog_creator.h b/content/shell/shell_javascript_dialog_creator.h index 953a5a8..0dd67ce 100644 --- a/content/shell/shell_javascript_dialog_creator.h +++ b/content/shell/shell_javascript_dialog_creator.h @@ -6,6 +6,7 @@ #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ #include "base/compiler_specific.h" +#include "base/callback_forward.h" #include "base/memory/scoped_ptr.h" #include "content/public/browser/javascript_dialogs.h" @@ -40,6 +41,12 @@ class ShellJavaScriptDialogCreator : public JavaScriptDialogCreator { // Called by the ShellJavaScriptDialog when it closes. void DialogClosed(ShellJavaScriptDialog* dialog); + // Used for content_browsertests. + void set_dialog_request_callback( + base::Callback<void()> dialog_request_callback) { + dialog_request_callback_ = dialog_request_callback; + } + private: #if defined(OS_MACOSX) || defined(OS_WIN) // The dialog being shown. No queueing. @@ -48,6 +55,8 @@ class ShellJavaScriptDialogCreator : public JavaScriptDialogCreator { // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if #endif + base::Callback<void()> dialog_request_callback_; + DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogCreator); }; |