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

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

Issue 2684093002: Rename JavaScript "messages" to "dialogs". (Closed)
Patch Set: win fox Created 3 years, 10 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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/public/browser/javascript_dialog_manager.h" 14 #include "content/public/browser/javascript_dialog_manager.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class ShellJavaScriptDialog; 18 class ShellJavaScriptDialog;
19 19
20 class ShellJavaScriptDialogManager : public JavaScriptDialogManager { 20 class ShellJavaScriptDialogManager : public JavaScriptDialogManager {
21 public: 21 public:
22 ShellJavaScriptDialogManager(); 22 ShellJavaScriptDialogManager();
23 ~ShellJavaScriptDialogManager() override; 23 ~ShellJavaScriptDialogManager() override;
24 24
25 // JavaScriptDialogManager: 25 // JavaScriptDialogManager:
26 void RunJavaScriptDialog(WebContents* web_contents, 26 void RunJavaScriptDialog(WebContents* web_contents,
27 const GURL& origin_url, 27 const GURL& origin_url,
28 JavaScriptMessageType javascript_message_type, 28 JavaScriptDialogType dialog_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 CancelDialogs(WebContents* web_contents, 38 void CancelDialogs(WebContents* web_contents,
(...skipping 25 matching lines...) Expand all
64 bool should_proceed_on_beforeunload_; 64 bool should_proceed_on_beforeunload_;
65 65
66 DialogClosedCallback before_unload_callback_; 66 DialogClosedCallback before_unload_callback_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager); 68 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogManager);
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace content
72 72
73 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_ 73 #endif // CONTENT_SHELL_BROWSER_SHELL_JAVASCRIPT_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_javascript_dialog_mac.mm ('k') | content/shell/browser/shell_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698