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

Side by Side Diff: components/autofill/content/browser/content_autofill_driver.cc

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: fix coordinates Created 3 years, 7 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/autofill/content/browser/content_autofill_driver.h" 5 #include "components/autofill/content/browser/content_autofill_driver.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
(...skipping 16 matching lines...) Expand all
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "services/service_manager/public/cpp/interface_provider.h" 28 #include "services/service_manager/public/cpp/interface_provider.h"
29 #include "ui/gfx/geometry/size_f.h" 29 #include "ui/gfx/geometry/size_f.h"
30 30
31 namespace autofill { 31 namespace autofill {
32 32
33 ContentAutofillDriver::ContentAutofillDriver( 33 ContentAutofillDriver::ContentAutofillDriver(
34 content::RenderFrameHost* render_frame_host, 34 content::RenderFrameHost* render_frame_host,
35 AutofillClient* client, 35 AutofillClient* client,
36 const std::string& app_locale, 36 const std::string& app_locale,
37 AutofillManager::AutofillDownloadManagerState enable_download_manager) 37 AutofillManager::AutofillDownloadManagerState enable_download_manager,
38 AutofillProvider* provider)
38 : render_frame_host_(render_frame_host), 39 : render_frame_host_(render_frame_host),
39 autofill_manager_(new AutofillManager(this, 40 autofill_manager_(new AutofillManager(this,
40 client, 41 client,
41 app_locale, 42 app_locale,
42 enable_download_manager)), 43 enable_download_manager,
44 provider)),
43 autofill_external_delegate_(autofill_manager_.get(), this), 45 autofill_external_delegate_(autofill_manager_.get(), this),
44 key_press_handler_manager_(this), 46 key_press_handler_manager_(this),
45 binding_(this) { 47 binding_(this) {
46 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); 48 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_);
47 } 49 }
48 50
49 ContentAutofillDriver::~ContentAutofillDriver() {} 51 ContentAutofillDriver::~ContentAutofillDriver() {}
50 52
51 // static 53 // static
52 ContentAutofillDriver* ContentAutofillDriver::GetForRenderFrameHost( 54 ContentAutofillDriver* ContentAutofillDriver::GetForRenderFrameHost(
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 280
279 void ContentAutofillDriver::RemoveHandler( 281 void ContentAutofillDriver::RemoveHandler(
280 const content::RenderWidgetHost::KeyPressEventCallback& handler) { 282 const content::RenderWidgetHost::KeyPressEventCallback& handler) {
281 content::RenderWidgetHostView* view = render_frame_host_->GetView(); 283 content::RenderWidgetHostView* view = render_frame_host_->GetView();
282 if (!view) 284 if (!view)
283 return; 285 return;
284 view->GetRenderWidgetHost()->RemoveKeyPressEventCallback(handler); 286 view->GetRenderWidgetHost()->RemoveKeyPressEventCallback(handler);
285 } 287 }
286 288
287 } // namespace autofill 289 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698