| 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 void CalculateBounds(); | 132 void CalculateBounds(); |
| 133 | 133 |
| 134 PasswordForm form_; | 134 PasswordForm form_; |
| 135 password_manager::PasswordManager* password_manager_; | 135 password_manager::PasswordManager* password_manager_; |
| 136 password_manager::PasswordManagerDriver* driver_; | 136 password_manager::PasswordManagerDriver* driver_; |
| 137 | 137 |
| 138 // May be NULL. | 138 // May be NULL. |
| 139 PasswordGenerationPopupObserver* observer_; | 139 PasswordGenerationPopupObserver* observer_; |
| 140 | 140 |
| 141 // Controls how passwords are generated. | 141 // Controls how passwords are generated. |
| 142 scoped_ptr<PasswordGenerator> generator_; | 142 std::unique_ptr<PasswordGenerator> generator_; |
| 143 | 143 |
| 144 // Contains common popup functionality. | 144 // Contains common popup functionality. |
| 145 PopupControllerCommon controller_common_; | 145 PopupControllerCommon controller_common_; |
| 146 | 146 |
| 147 // Help text and the range in the text that corresponds to the saved passwords | 147 // Help text and the range in the text that corresponds to the saved passwords |
| 148 // link. | 148 // link. |
| 149 base::string16 help_text_; | 149 base::string16 help_text_; |
| 150 gfx::Range link_range_; | 150 gfx::Range link_range_; |
| 151 | 151 |
| 152 base::string16 current_password_; | 152 base::string16 current_password_; |
| 153 bool password_selected_; | 153 bool password_selected_; |
| 154 | 154 |
| 155 // If a password will be shown in this popup. | 155 // If a password will be shown in this popup. |
| 156 bool display_password_; | 156 bool display_password_; |
| 157 | 157 |
| 158 // Bounds for all the elements of the popup. | 158 // Bounds for all the elements of the popup. |
| 159 gfx::Rect popup_bounds_; | 159 gfx::Rect popup_bounds_; |
| 160 | 160 |
| 161 PopupViewCommon view_common_; | 161 PopupViewCommon view_common_; |
| 162 | 162 |
| 163 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; | 163 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; |
| 164 | 164 |
| 165 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); | 165 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 } // namespace autofill | 168 } // namespace autofill |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ | 170 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ |
| OLD | NEW |