| 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 "chrome/browser/ui/autofill/chrome_autofill_client.h" | 5 #include "chrome/browser/ui/autofill/chrome_autofill_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 10 #include "chrome/browser/infobars/infobar_service.h" | 10 #include "chrome/browser/infobars/infobar_service.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ChromeAutofillClient::DidNavigateAnyFrame( | 214 void ChromeAutofillClient::DidNavigateAnyFrame( |
| 215 content::RenderFrameHost* render_frame_host, | 215 content::RenderFrameHost* render_frame_host, |
| 216 const content::LoadCommittedDetails& details, | 216 const content::LoadCommittedDetails& details, |
| 217 const content::FrameNavigateParams& params) { | 217 const content::FrameNavigateParams& params) { |
| 218 if (dialog_controller_ && render_frame_host == last_rfh_to_rac_) | 218 if (dialog_controller_ && render_frame_host == last_rfh_to_rac_) |
| 219 HideRequestAutocompleteDialog(); | 219 HideRequestAutocompleteDialog(); |
| 220 } | 220 } |
| 221 | 221 |
| 222 void ChromeAutofillClient::MainFrameWasResized() { |
| 223 HideAutofillPopup(); |
| 224 } |
| 225 |
| 222 void ChromeAutofillClient::WebContentsDestroyed() { | 226 void ChromeAutofillClient::WebContentsDestroyed() { |
| 223 HideAutofillPopup(); | 227 HideAutofillPopup(); |
| 224 } | 228 } |
| 225 | 229 |
| 226 void ChromeAutofillClient::OnZoomChanged( | 230 void ChromeAutofillClient::OnZoomChanged( |
| 227 const ui_zoom::ZoomController::ZoomChangedEventData& data) { | 231 const ui_zoom::ZoomController::ZoomChangedEventData& data) { |
| 228 HideAutofillPopup(); | 232 HideAutofillPopup(); |
| 229 } | 233 } |
| 230 | 234 |
| 231 void ChromeAutofillClient::DetectAccountCreationForms( | 235 void ChromeAutofillClient::DetectAccountCreationForms( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 252 new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); | 256 new AutofillMsg_FirstUserGestureObservedInTab(routing_id())); |
| 253 } | 257 } |
| 254 | 258 |
| 255 void ChromeAutofillClient::LinkClicked(const GURL& url, | 259 void ChromeAutofillClient::LinkClicked(const GURL& url, |
| 256 WindowOpenDisposition disposition) { | 260 WindowOpenDisposition disposition) { |
| 257 web_contents()->OpenURL(content::OpenURLParams( | 261 web_contents()->OpenURL(content::OpenURLParams( |
| 258 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); | 262 url, content::Referrer(), disposition, ui::PAGE_TRANSITION_LINK, false)); |
| 259 } | 263 } |
| 260 | 264 |
| 261 } // namespace autofill | 265 } // namespace autofill |
| OLD | NEW |