| Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h
|
| diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h
|
| index 09119f4a976055835435fa7fcd6b94c2a92298b5..a47aa32342dac592c45a91cb821f24af26eaa9fe 100644
|
| --- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h
|
| +++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h
|
| @@ -10,20 +10,22 @@
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "chrome/browser/ui/autofill/autofill_popup_view.h"
|
| +#include "chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h"
|
|
|
| @class AutofillPopupViewCocoa;
|
| @class NSWindow;
|
|
|
| namespace autofill {
|
|
|
| -class AutofillPopupController;
|
| +class AutofillPopupViewDelegate;
|
|
|
| -// Mac implementation for AutofillPopupView interface.
|
| -// Serves as a bridge to the Objective-C class AutofillPopupViewCocoa which
|
| -// actually implements the view.
|
| +// Mac implementation of the AutofillPopupView interface.
|
| +// Serves as a bridge to an instance of the Objective-C class which actually
|
| +// implements the view.
|
| class AutofillPopupViewBridge : public AutofillPopupView {
|
| public:
|
| - explicit AutofillPopupViewBridge(AutofillPopupController* controller);
|
| + explicit AutofillPopupViewBridge(
|
| + AutofillPopupViewCocoa* view, AutofillPopupController* controller);
|
|
|
| private:
|
| virtual ~AutofillPopupViewBridge();
|
| @@ -34,16 +36,13 @@ class AutofillPopupViewBridge : public AutofillPopupView {
|
| virtual void InvalidateRow(size_t row) OVERRIDE;
|
| virtual void UpdateBoundsAndRedrawPopup() OVERRIDE;
|
|
|
| - // Set the initial bounds of the popup to show, including the placement
|
| - // of it.
|
| + // Set the initial bounds of the popup, including its placement.
|
| void SetInitialBounds();
|
|
|
| - // The controller for this view.
|
| - AutofillPopupController* controller_; // Weak reference.
|
| + // The native Cocoa view.
|
| + AutofillPopupViewCocoa* view_; // Weak reference, owned by |window_|.
|
|
|
| - // The native Cocoa window and view.
|
| - NSWindow* window_; // Weak reference, owns itself.
|
| - AutofillPopupViewCocoa* view_; // Weak reference, owned by the |window_|.
|
| + AutofillPopupController* controller_; // Weak reference.
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewBridge);
|
| };
|
|
|