| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 PasswordManager* password_manager, | 52 PasswordManager* password_manager, |
| 53 PasswordGenerationPopupObserver* observer, | 53 PasswordGenerationPopupObserver* observer, |
| 54 content::WebContents* web_contents, | 54 content::WebContents* web_contents, |
| 55 gfx::NativeView container_view); | 55 gfx::NativeView container_view); |
| 56 virtual ~PasswordGenerationPopupControllerImpl(); | 56 virtual ~PasswordGenerationPopupControllerImpl(); |
| 57 | 57 |
| 58 // Create a PasswordGenerationPopupView if one doesn't already exist. | 58 // Create a PasswordGenerationPopupView if one doesn't already exist. |
| 59 // Does not update the view if one is already showing. | 59 // Does not update the view if one is already showing. |
| 60 void Show(); | 60 void Show(); |
| 61 | 61 |
| 62 // Hides the popup and destroys |this|. |
| 63 void HideAndDestroy(); |
| 64 |
| 62 // Accessors. | 65 // Accessors. |
| 63 content::WebContents* web_contents() { | 66 content::WebContents* web_contents() { |
| 64 return controller_common_.web_contents(); | 67 return controller_common_.web_contents(); |
| 65 } | 68 } |
| 66 const gfx::RectF& element_bounds() { | 69 const gfx::RectF& element_bounds() { |
| 67 return controller_common_.element_bounds(); | 70 return controller_common_.element_bounds(); |
| 68 } | 71 } |
| 69 | 72 |
| 70 private: | 73 private: |
| 71 PasswordGenerationPopupControllerImpl( | 74 PasswordGenerationPopupControllerImpl( |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 gfx::Rect help_bounds_; | 143 gfx::Rect help_bounds_; |
| 141 | 144 |
| 142 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; | 145 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; |
| 143 | 146 |
| 144 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); | 147 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); |
| 145 }; | 148 }; |
| 146 | 149 |
| 147 } // namespace autofill | 150 } // namespace autofill |
| 148 | 151 |
| 149 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ | 152 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ |
| OLD | NEW |