| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "android_webview/native/aw_autofill_client.h" | 5 #include "android_webview/native/aw_autofill_client.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "android_webview/browser/aw_content_browser_client.h" | 8 #include "android_webview/browser/aw_content_browser_client.h" |
| 9 #include "android_webview/browser/aw_form_database_service.h" | 9 #include "android_webview/browser/aw_form_database_service.h" |
| 10 #include "android_webview/browser/aw_pref_store.h" | 10 #include "android_webview/browser/aw_pref_store.h" |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 void AwAutofillClient::DidFillOrPreviewField( | 171 void AwAutofillClient::DidFillOrPreviewField( |
| 172 const base::string16& autofilled_value, | 172 const base::string16& autofilled_value, |
| 173 const base::string16& profile_full_name) { | 173 const base::string16& profile_full_name) { |
| 174 } | 174 } |
| 175 | 175 |
| 176 void AwAutofillClient::OnFirstUserGestureObserved() { | 176 void AwAutofillClient::OnFirstUserGestureObserved() { |
| 177 NOTIMPLEMENTED(); | 177 NOTIMPLEMENTED(); |
| 178 } | 178 } |
| 179 | 179 |
| 180 void AwAutofillClient::LinkClicked(const GURL& url, | |
| 181 WindowOpenDisposition disposition) { | |
| 182 NOTIMPLEMENTED(); | |
| 183 } | |
| 184 | |
| 185 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) { | 180 bool AwAutofillClient::IsContextSecure(const GURL& form_origin) { |
| 186 content::SSLStatus ssl_status; | 181 content::SSLStatus ssl_status; |
| 187 content::NavigationEntry* navigation_entry = | 182 content::NavigationEntry* navigation_entry = |
| 188 web_contents_->GetController().GetLastCommittedEntry(); | 183 web_contents_->GetController().GetLastCommittedEntry(); |
| 189 if (!navigation_entry) | 184 if (!navigation_entry) |
| 190 return false; | 185 return false; |
| 191 | 186 |
| 192 ssl_status = navigation_entry->GetSSL(); | 187 ssl_status = navigation_entry->GetSSL(); |
| 193 // Note: The implementation below is a copy of the one in | 188 // Note: The implementation below is a copy of the one in |
| 194 // ChromeAutofillClient::IsContextSecure, and should be kept in sync | 189 // ChromeAutofillClient::IsContextSecure, and should be kept in sync |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 content::RenderFrameHost* rfh, | 239 content::RenderFrameHost* rfh, |
| 245 const ResultCallback& callback) { | 240 const ResultCallback& callback) { |
| 246 NOTIMPLEMENTED(); | 241 NOTIMPLEMENTED(); |
| 247 } | 242 } |
| 248 | 243 |
| 249 bool RegisterAwAutofillClient(JNIEnv* env) { | 244 bool RegisterAwAutofillClient(JNIEnv* env) { |
| 250 return RegisterNativesImpl(env); | 245 return RegisterNativesImpl(env); |
| 251 } | 246 } |
| 252 | 247 |
| 253 } // namespace android_webview | 248 } // namespace android_webview |
| OLD | NEW |