1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_H_
8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/shell/browser/shell_javascript_dialog_manager.h"
15 class LayoutTestJavaScriptDialogManager
: public ShellJavaScriptDialogManager
{
17 LayoutTestJavaScriptDialogManager();
18 ~LayoutTestJavaScriptDialogManager() override
;
20 // JavaScriptDialogManager:
21 void RunJavaScriptDialog(WebContents
* web_contents
,
22 const GURL
& origin_url
,
23 const std::string
& accept_lang
,
24 JavaScriptMessageType javascript_message_type
,
25 const base::string16
& message_text
,
26 const base::string16
& default_prompt_text
,
27 const DialogClosedCallback
& callback
,
28 bool* did_suppress_message
) override
;
30 void RunBeforeUnloadDialog(WebContents
* web_contents
,
31 const base::string16
& message_text
,
33 const DialogClosedCallback
& callback
) override
;
36 DISALLOW_COPY_AND_ASSIGN(LayoutTestJavaScriptDialogManager
);
39 } // namespace content
41 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_JAVASCRIPT_DIALOG_MANAGER_H_