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

Side by Side Diff: android_webview/browser/aw_contents_client_bridge_base.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
« no previous file with comments | « no previous file | android_webview/browser/aw_javascript_dialog_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "android_webview/browser/net/aw_web_resource_request.h" 10 #include "android_webview/browser/net/aw_web_resource_request.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 net::X509Certificate* cert, 53 net::X509Certificate* cert,
54 const GURL& request_url, 54 const GURL& request_url,
55 const base::Callback<void(content::CertificateRequestResultType)>& 55 const base::Callback<void(content::CertificateRequestResultType)>&
56 callback, 56 callback,
57 bool* cancel_request) = 0; 57 bool* cancel_request) = 0;
58 virtual void SelectClientCertificate( 58 virtual void SelectClientCertificate(
59 net::SSLCertRequestInfo* cert_request_info, 59 net::SSLCertRequestInfo* cert_request_info,
60 std::unique_ptr<content::ClientCertificateDelegate> delegate) = 0; 60 std::unique_ptr<content::ClientCertificateDelegate> delegate) = 0;
61 61
62 virtual void RunJavaScriptDialog( 62 virtual void RunJavaScriptDialog(
63 content::JavaScriptMessageType message_type, 63 content::JavaScriptDialogType dialog_type,
64 const GURL& origin_url, 64 const GURL& origin_url,
65 const base::string16& message_text, 65 const base::string16& message_text,
66 const base::string16& default_prompt_text, 66 const base::string16& default_prompt_text,
67 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 67 const content::JavaScriptDialogManager::DialogClosedCallback&
68 = 0; 68 callback) = 0;
69 69
70 virtual void RunBeforeUnloadDialog( 70 virtual void RunBeforeUnloadDialog(
71 const GURL& origin_url, 71 const GURL& origin_url,
72 const content::JavaScriptDialogManager::DialogClosedCallback& callback) 72 const content::JavaScriptDialogManager::DialogClosedCallback& callback)
73 = 0; 73 = 0;
74 74
75 virtual bool ShouldOverrideUrlLoading(const base::string16& url, 75 virtual bool ShouldOverrideUrlLoading(const base::string16& url,
76 bool has_user_gesture, 76 bool has_user_gesture,
77 bool is_redirect, 77 bool is_redirect,
78 bool is_main_frame) = 0; 78 bool is_main_frame) = 0;
(...skipping 19 matching lines...) Expand all
98 // Called when a response from the server is received with status code >= 400. 98 // Called when a response from the server is received with status code >= 400.
99 virtual void OnReceivedHttpError( 99 virtual void OnReceivedHttpError(
100 const AwWebResourceRequest& request, 100 const AwWebResourceRequest& request,
101 const scoped_refptr<const net::HttpResponseHeaders>& 101 const scoped_refptr<const net::HttpResponseHeaders>&
102 response_headers) = 0; 102 response_headers) = 0;
103 }; 103 };
104 104
105 } // namespace android_webview 105 } // namespace android_webview
106 106
107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_ 107 #endif // ANDROID_WEBVIEW_BROWSER_AW_CONTENTS_CLIENT_BRIDGE_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_javascript_dialog_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698