| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 int max_length, | 53 int max_length, |
| 54 password_manager::PasswordManager* password_manager, | 54 password_manager::PasswordManager* password_manager, |
| 55 PasswordGenerationPopupObserver* observer, | 55 PasswordGenerationPopupObserver* observer, |
| 56 content::WebContents* web_contents, | 56 content::WebContents* web_contents, |
| 57 gfx::NativeView container_view); | 57 gfx::NativeView container_view); |
| 58 virtual ~PasswordGenerationPopupControllerImpl(); | 58 virtual ~PasswordGenerationPopupControllerImpl(); |
| 59 | 59 |
| 60 // Create a PasswordGenerationPopupView if one doesn't already exist. | 60 // Create a PasswordGenerationPopupView if one doesn't already exist. |
| 61 // If |display_password| is true, a generated password is shown that can be | 61 // If |display_password| is true, a generated password is shown that can be |
| 62 // selected by the user. Otherwise just the text explaining generated | 62 // selected by the user. Otherwise just the text explaining generated |
| 63 // passwords is shown. | 63 // passwords is shown. Idempotent. |
| 64 void Show(bool display_password); | 64 void Show(bool display_password); |
| 65 | 65 |
| 66 // Hides the popup and destroys |this|. | 66 // Hides the popup and destroys |this|. |
| 67 void HideAndDestroy(); | 67 void HideAndDestroy(); |
| 68 | 68 |
| 69 // Accessors. | 69 // Accessors. |
| 70 content::WebContents* web_contents() { | 70 content::WebContents* web_contents() { |
| 71 return controller_common_.web_contents(); | 71 return controller_common_.web_contents(); |
| 72 } | 72 } |
| 73 const gfx::RectF& element_bounds() { | 73 const gfx::RectF& element_bounds() { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 gfx::Rect popup_bounds_; | 149 gfx::Rect popup_bounds_; |
| 150 | 150 |
| 151 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; | 151 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); | 153 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace autofill | 156 } // namespace autofill |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ | 158 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ |
| OLD | NEW |