Chromium Code Reviews| Index: chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h |
| diff --git a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h |
| index e475161c8796473ab29d438de8821feaac08d736..cb217e5107ec963e94138dbedfbd9214f5e2ccac 100644 |
| --- a/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h |
| +++ b/chrome/browser/ui/cocoa/autofill/password_generation_popup_view_cocoa.h |
| @@ -7,6 +7,7 @@ |
| #import <Cocoa/Cocoa.h> |
| +#include "base/mac/scoped_nsobject.h" |
| #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" |
| #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" |
| @@ -23,9 +24,13 @@ class AutofillPopupController; |
| // The cross-platform controller for this view. |
| __weak autofill::PasswordGenerationPopupController* controller_; |
| - __weak NSTextField* passwordField_; |
| - __weak NSTextField* passwordSubtextField_; |
| - __weak HyperlinkTextView* helpTextView_; |
| + base::scoped_nsobject<NSView> passwordSection_; |
| + base::scoped_nsobject<NSTextField> passwordField_; |
| + base::scoped_nsobject<NSTextField> passwordTitleField_; |
| + base::scoped_nsobject<NSImageView> keyIcon_; |
| + base::scoped_nsobject<NSBox> divider_; |
| + base::scoped_nsobject<NSView> helpSection_; |
| + base::scoped_nsobject<HyperlinkTextView> helpTextView_; |
| } |
| // Designated initializer. |
| @@ -33,10 +38,16 @@ class AutofillPopupController; |
| (autofill::PasswordGenerationPopupController*)controller |
| frame:(NSRect)frame; |
| +// Determines whether |point| falls inside the password section of the popup. |
|
groby-ooo-7-16
2014/08/21 04:40:06
Do you need this function? You're not consuming it
dconnelly
2014/08/21 10:44:25
It's being consumed by PasswordGenerationPopupView
|
| +- (BOOL)isPointInPasswordBounds:(NSPoint)point; |
| + |
| // Informs the view that its controller has been (or will imminently be) |
| // destroyed. |
| - (void)controllerDestroyed; |
| +// The preferred size for the popup. |
| +- (NSSize)preferredSize; |
| + |
| @end |
| #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_COCOA_H_ |