| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/password_manager/password_generation_manager.h" | 5 #include "chrome/browser/password_manager/password_generation_manager.h" |
| 6 | 6 |
| 7 #include "chrome/browser/password_manager/password_manager.h" | 7 #include "chrome/browser/password_manager/password_manager.h" |
| 8 #include "chrome/browser/password_manager/password_manager_client.h" | 8 #include "chrome/browser/password_manager/password_manager_client.h" |
| 9 #include "chrome/browser/password_manager/password_manager_driver.h" | 9 #include "chrome/browser/password_manager/password_manager_driver.h" |
| 10 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" | 10 #include "chrome/browser/ui/autofill/password_generation_popup_controller_impl.h
" |
| 11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "components/autofill/content/common/autofill_messages.h" | 14 #include "components/autofill/content/common/autofill_messages.h" |
| 15 #include "components/autofill/core/browser/autofill_field.h" | 15 #include "components/autofill/core/browser/autofill_field.h" |
| 16 #include "components/autofill/core/browser/field_types.h" | 16 #include "components/autofill/core/browser/field_types.h" |
| 17 #include "components/autofill/core/browser/form_structure.h" | 17 #include "components/autofill/core/browser/form_structure.h" |
| 18 #include "components/autofill/core/browser/password_generator.h" | 18 #include "components/autofill/core/browser/password_generator.h" |
| 19 #include "components/autofill/core/common/form_data.h" | 19 #include "components/autofill/core/common/form_data.h" |
| 20 #include "components/autofill/core/common/password_form.h" | 20 #include "components/autofill/core/common/password_form.h" |
| 21 #include "content/public/browser/browser_thread.h" | |
| 22 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
| 23 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
| 24 #include "content/public/browser/web_contents_view.h" | 23 #include "content/public/browser/web_contents_view.h" |
| 25 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
| 26 | 25 |
| 27 PasswordGenerationManager::PasswordGenerationManager( | 26 PasswordGenerationManager::PasswordGenerationManager( |
| 28 content::WebContents* contents, | 27 content::WebContents* contents, |
| 29 PasswordManagerClient* client) | 28 PasswordManagerClient* client) |
| 30 : web_contents_(contents), | 29 : web_contents_(contents), |
| 31 observer_(NULL), | 30 observer_(NULL), |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 123 } |
| 125 | 124 |
| 126 void PasswordGenerationManager::OnHidePasswordGenerationPopup() { | 125 void PasswordGenerationManager::OnHidePasswordGenerationPopup() { |
| 127 HidePopup(); | 126 HidePopup(); |
| 128 } | 127 } |
| 129 | 128 |
| 130 void PasswordGenerationManager::HidePopup() { | 129 void PasswordGenerationManager::HidePopup() { |
| 131 if (popup_controller_) | 130 if (popup_controller_) |
| 132 popup_controller_->HideAndDestroy(); | 131 popup_controller_->HideAndDestroy(); |
| 133 } | 132 } |
| OLD | NEW |