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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 2762233004: Fix autofill popup controller key press callback registration (Closed)
Patch Set: Fix typo Created 3 years, 8 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 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 "components/password_manager/content/browser/content_password_manager_d river.h" 5 #include "components/password_manager/content/browser/content_password_manager_d river.h"
6 6
7 #include "components/autofill/content/browser/content_autofill_driver.h" 7 #include "components/autofill/content/browser/content_autofill_driver.h"
8 #include "components/autofill/core/common/form_data.h" 8 #include "components/autofill/core/common/form_data.h"
9 #include "components/autofill/core/common/password_form.h" 9 #include "components/autofill/core/common/password_form.h"
10 #include "components/password_manager/content/browser/bad_message.h" 10 #include "components/password_manager/content/browser/bad_message.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 void ContentPasswordManagerDriver::SendLoggingAvailability() { 150 void ContentPasswordManagerDriver::SendLoggingAvailability() {
151 GetPasswordAutofillAgent()->SetLoggingState( 151 GetPasswordAutofillAgent()->SetLoggingState(
152 client_->GetLogManager()->IsLoggingActive()); 152 client_->GetLogManager()->IsLoggingActive());
153 } 153 }
154 154
155 void ContentPasswordManagerDriver::AllowToRunFormClassifier() { 155 void ContentPasswordManagerDriver::AllowToRunFormClassifier() {
156 GetPasswordGenerationAgent()->AllowToRunFormClassifier(); 156 GetPasswordGenerationAgent()->AllowToRunFormClassifier();
157 } 157 }
158 158
159 autofill::AutofillDriver* ContentPasswordManagerDriver::GetAutofillDriver() {
160 return autofill::ContentAutofillDriver::GetForRenderFrameHost(
161 render_frame_host_);
162 }
163
159 PasswordGenerationManager* 164 PasswordGenerationManager*
160 ContentPasswordManagerDriver::GetPasswordGenerationManager() { 165 ContentPasswordManagerDriver::GetPasswordGenerationManager() {
161 return &password_generation_manager_; 166 return &password_generation_manager_;
162 } 167 }
163 168
164 PasswordManager* ContentPasswordManagerDriver::GetPasswordManager() { 169 PasswordManager* ContentPasswordManagerDriver::GetPasswordManager() {
165 return client_->GetPasswordManager(); 170 return client_->GetPasswordManager();
166 } 171 }
167 172
168 PasswordAutofillManager* 173 PasswordAutofillManager*
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 const gfx::RectF& bounds_in_frame_coordinates) { 358 const gfx::RectF& bounds_in_frame_coordinates) {
354 content::RenderWidgetHostView* rwhv = render_frame_host_->GetView(); 359 content::RenderWidgetHostView* rwhv = render_frame_host_->GetView();
355 if (!rwhv) 360 if (!rwhv)
356 return bounds_in_frame_coordinates; 361 return bounds_in_frame_coordinates;
357 return gfx::RectF(rwhv->TransformPointToRootCoordSpaceF( 362 return gfx::RectF(rwhv->TransformPointToRootCoordSpaceF(
358 bounds_in_frame_coordinates.origin()), 363 bounds_in_frame_coordinates.origin()),
359 bounds_in_frame_coordinates.size()); 364 bounds_in_frame_coordinates.size());
360 } 365 }
361 366
362 } // namespace password_manager 367 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698