OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 void RunJavaScriptDialog(WebContents* web_contents, | 25 void RunJavaScriptDialog(WebContents* web_contents, |
26 const GURL& origin_url, | 26 const GURL& origin_url, |
27 const std::string& accept_lang, | 27 const std::string& accept_lang, |
28 JavaScriptMessageType javascript_message_type, | 28 JavaScriptMessageType javascript_message_type, |
29 const base::string16& message_text, | 29 const base::string16& message_text, |
30 const base::string16& default_prompt_text, | 30 const base::string16& default_prompt_text, |
31 const DialogClosedCallback& callback, | 31 const DialogClosedCallback& callback, |
32 bool* did_suppress_message) override; | 32 bool* did_suppress_message) override; |
33 | 33 |
34 void RunBeforeUnloadDialog(WebContents* web_contents, | 34 void RunBeforeUnloadDialog(WebContents* web_contents, |
35 const base::string16& message_text, | |
36 bool is_reload, | 35 bool is_reload, |
37 const DialogClosedCallback& callback) override; | 36 const DialogClosedCallback& callback) override; |
38 | 37 |
39 void CancelActiveAndPendingDialogs(WebContents* web_contents) override; | 38 void CancelActiveAndPendingDialogs(WebContents* web_contents) override; |
40 | 39 |
41 void ResetDialogState(WebContents* web_contents) override; | 40 void ResetDialogState(WebContents* web_contents) override; |
42 | 41 |
43 // Called by the ShellJavaScriptDialog when it closes. | 42 // Called by the ShellJavaScriptDialog when it closes. |
44 void DialogClosed(ShellJavaScriptDialog* dialog); | 43 void DialogClosed(ShellJavaScriptDialog* dialog); |
45 | 44 |
(...skipping 11 matching lines...) Expand all Loading... |
57 #endif | 56 #endif |
58 | 57 |
59 base::Closure dialog_request_callback_; | 58 base::Closure dialog_request_callback_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager); | 60 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager); |
62 }; | 61 }; |
63 | 62 |
64 } // namespace content | 63 } // namespace content |
65 | 64 |
66 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ | 65 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ |
OLD | NEW |