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

Side by Side Diff: content/shell/browser/shell_javascript_dialog_manager.h

Issue 2412843002: Simplify the JavaScriptDialogManager. (Closed)
Patch Set: braces Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 17 matching lines...) Expand all
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 bool is_reload, 35 bool is_reload,
36 const DialogClosedCallback& callback) override; 36 const DialogClosedCallback& callback) override;
37 37
38 void CancelActiveAndPendingDialogs(WebContents* web_contents) override; 38 void CancelDialogs(WebContents* web_contents,
39 39 bool suppress_callbacks,
40 void ResetDialogState(WebContents* web_contents) override; 40 bool reset_state) override;
41 41
42 // Called by the ShellJavaScriptDialog when it closes. 42 // Called by the ShellJavaScriptDialog when it closes.
43 void DialogClosed(ShellJavaScriptDialog* dialog); 43 void DialogClosed(ShellJavaScriptDialog* dialog);
44 44
45 // Used for content_browsertests. 45 // Used for content_browsertests.
46 void set_dialog_request_callback(const base::Closure& callback) { 46 void set_dialog_request_callback(const base::Closure& callback) {
47 dialog_request_callback_ = callback; 47 dialog_request_callback_ = callback;
48 } 48 }
49 void set_should_proceed_on_beforeunload(bool proceed) { 49 void set_should_proceed_on_beforeunload(bool proceed) {
50 should_proceed_on_beforeunload_ = proceed; 50 should_proceed_on_beforeunload_ = proceed;
(...skipping 14 matching lines...) Expand all
65 bool should_proceed_on_beforeunload_; 65 bool should_proceed_on_beforeunload_;
66 66
67 DialogClosedCallback before_unload_callback_; 67 DialogClosedCallback before_unload_callback_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager); 69 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ 74 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/javascript_dialog_manager.h ('k') | content/shell/browser/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698