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 "components/autofill/content/browser/content_autofill_driver.h" | 5 #include "components/autofill/content/browser/content_autofill_driver.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 #include "components/autofill/content/common/autofill_messages.h" | 9 #include "components/autofill/content/common/autofill_messages.h" |
10 #include "components/autofill/core/browser/autofill_client.h" | 10 #include "components/autofill/core/browser/autofill_client.h" |
11 #include "components/autofill/core/browser/autofill_external_delegate.h" | 11 #include "components/autofill/core/browser/autofill_external_delegate.h" |
12 #include "components/autofill/core/browser/autofill_manager.h" | 12 #include "components/autofill/core/browser/autofill_manager.h" |
13 #include "components/autofill/core/browser/form_structure.h" | 13 #include "components/autofill/core/browser/form_structure.h" |
14 #include "components/autofill/core/common/autofill_constants.h" | |
14 #include "components/autofill/core/common/autofill_switches.h" | 15 #include "components/autofill/core/common/autofill_switches.h" |
15 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
18 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
19 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
21 #include "content/public/common/frame_navigate_params.h" | 22 #include "content/public/common/frame_navigate_params.h" |
22 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
23 | 24 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 | 226 |
226 void ContentAutofillDriver::NavigationEntryCommitted( | 227 void ContentAutofillDriver::NavigationEntryCommitted( |
227 const content::LoadCommittedDetails& load_details) { | 228 const content::LoadCommittedDetails& load_details) { |
228 autofill_manager_->client()->HideAutofillPopup(); | 229 autofill_manager_->client()->HideAutofillPopup(); |
229 } | 230 } |
230 | 231 |
231 void ContentAutofillDriver::WasHidden() { | 232 void ContentAutofillDriver::WasHidden() { |
232 autofill_manager_->client()->HideAutofillPopup(); | 233 autofill_manager_->client()->HideAutofillPopup(); |
233 } | 234 } |
234 | 235 |
236 void ContentAutofillDriver::LinkClicked( | |
237 WindowOpenDisposition disposition) const { | |
238 web_contents()->OpenURL(content::OpenURLParams( | |
Ilya Sherman
2014/11/21 18:41:52
I don't believe that OpenURL is a const method, so
Peter Kasting
2014/11/21 19:42:17
I agree, but the reason this was even possible was
| |
239 GURL(autofill::kHelpURL), content::Referrer(), | |
240 (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, | |
241 ui::PAGE_TRANSITION_LINK, false)); | |
Ilya Sherman
2014/11/21 18:41:52
I think some of this work belongs in the infobar c
Pritam Nikam
2014/11/24 14:45:54
Done.
| |
242 } | |
243 | |
235 } // namespace autofill | 244 } // namespace autofill |
OLD | NEW |