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

Side by Side Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 377423002: Make ChromeAutofillClient a ZoomObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify ChromeAutofillClient dependance on ZoomController. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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/autofill_cc_infobar_delegate.h" 9 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h"
10 #include "chrome/browser/autofill/personal_data_manager_factory.h" 10 #include "chrome/browser/autofill/personal_data_manager_factory.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void ChromeAutofillClient::HideRequestAutocompleteDialog() { 166 void ChromeAutofillClient::HideRequestAutocompleteDialog() {
167 if (dialog_controller_.get()) 167 if (dialog_controller_.get())
168 dialog_controller_->Hide(); 168 dialog_controller_->Hide();
169 } 169 }
170 170
171 void ChromeAutofillClient::WebContentsDestroyed() { 171 void ChromeAutofillClient::WebContentsDestroyed() {
172 HideAutofillPopup(); 172 HideAutofillPopup();
173 } 173 }
174 174
175 void ChromeAutofillClient::OnZoomChanged(
176 const ZoomController::ZoomChangedEventData& data) {
177 HideAutofillPopup();
178 }
179
175 void ChromeAutofillClient::DetectAccountCreationForms( 180 void ChromeAutofillClient::DetectAccountCreationForms(
176 const std::vector<autofill::FormStructure*>& forms) { 181 const std::vector<autofill::FormStructure*>& forms) {
177 password_manager::PasswordGenerationManager* manager = 182 password_manager::PasswordGenerationManager* manager =
178 ChromePasswordManagerClient::GetGenerationManagerFromWebContents( 183 ChromePasswordManagerClient::GetGenerationManagerFromWebContents(
179 web_contents_); 184 web_contents_);
180 if (manager) 185 if (manager)
181 manager->DetectAccountCreationForms(forms); 186 manager->DetectAccountCreationForms(forms);
182 } 187 }
183 188
184 void ChromeAutofillClient::DidFillOrPreviewField( 189 void ChromeAutofillClient::DidFillOrPreviewField(
185 const base::string16& autofilled_value, 190 const base::string16& autofilled_value,
186 const base::string16& profile_full_name) { 191 const base::string16& profile_full_name) {
187 #if defined(OS_ANDROID) 192 #if defined(OS_ANDROID)
188 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value, 193 AutofillLoggerAndroid::DidFillOrPreviewField(autofilled_value,
189 profile_full_name); 194 profile_full_name);
190 #endif // defined(OS_ANDROID) 195 #endif // defined(OS_ANDROID)
191 } 196 }
192 197
193 } // namespace autofill 198 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698