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

Side by Side Diff: android_webview/browser/aw_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/javascript_dialog_manager.h" 9 #include "content/public/browser/javascript_dialog_manager.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 class AwJavaScriptDialogManager : public content::JavaScriptDialogManager { 13 class AwJavaScriptDialogManager : public content::JavaScriptDialogManager {
14 public: 14 public:
15 explicit AwJavaScriptDialogManager(); 15 explicit AwJavaScriptDialogManager();
16 ~AwJavaScriptDialogManager() override; 16 ~AwJavaScriptDialogManager() override;
17 17
18 // Overridden from content::JavaScriptDialogManager: 18 // Overridden from content::JavaScriptDialogManager:
19 void RunJavaScriptDialog(content::WebContents* web_contents, 19 void RunJavaScriptDialog(content::WebContents* web_contents,
20 const GURL& origin_url, 20 const GURL& origin_url,
21 content::JavaScriptMessageType message_type, 21 content::JavaScriptDialogType dialog_type,
22 const base::string16& message_text, 22 const base::string16& message_text,
23 const base::string16& default_prompt_text, 23 const base::string16& default_prompt_text,
24 const DialogClosedCallback& callback, 24 const DialogClosedCallback& callback,
25 bool* did_suppress_message) override; 25 bool* did_suppress_message) override;
26 void RunBeforeUnloadDialog(content::WebContents* web_contents, 26 void RunBeforeUnloadDialog(content::WebContents* web_contents,
27 bool is_reload, 27 bool is_reload,
28 const DialogClosedCallback& callback) override; 28 const DialogClosedCallback& callback) override;
29 void CancelDialogs(content::WebContents* web_contents, 29 void CancelDialogs(content::WebContents* web_contents,
30 bool reset_state) override; 30 bool reset_state) override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(AwJavaScriptDialogManager); 33 DISALLOW_COPY_AND_ASSIGN(AwJavaScriptDialogManager);
34 }; 34 };
35 35
36 } // namespace android_webview 36 } // namespace android_webview
37 37
38 #endif // ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_ 38 #endif // ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_contents_client_bridge_base.h ('k') | android_webview/browser/aw_javascript_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698