| Index: content/shell/shell_javascript_dialog_creator.h
|
| ===================================================================
|
| --- content/shell/shell_javascript_dialog_creator.h (revision 147965)
|
| +++ content/shell/shell_javascript_dialog_creator.h (working copy)
|
| @@ -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 @@
|
| // 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 @@
|
| // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if
|
| #endif
|
|
|
| + base::Callback<void()> dialog_request_callback_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogCreator);
|
| };
|
|
|
|
|