Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2045)

Unified Diff: content/shell/shell_javascript_dialog_creator.h

Issue 10806056: Move plugin_browsertests.cc from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to mac+win fixes Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698