| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_MAC_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_nsobject.h" |
| 12 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
| 13 |
| 14 class AutofillPopupController; |
| 15 @class AutofillPopupViewCocoa; |
| 16 @class NSWindow; |
| 17 |
| 18 // Mac implementation for AutofillPopupView interface. |
| 19 class AutofillPopupViewMac : public AutofillPopupView { |
| 20 public: |
| 21 explicit AutofillPopupViewMac(AutofillPopupController* controller); |
| 22 |
| 23 private: |
| 24 virtual ~AutofillPopupViewMac(); |
| 25 |
| 26 // AutofillPopupView implementation. |
| 27 virtual void Hide() OVERRIDE; |
| 28 virtual void Show() OVERRIDE; |
| 29 virtual void InvalidateRow(size_t row) OVERRIDE; |
| 30 virtual void UpdateBoundsAndRedrawPopup() OVERRIDE; |
| 31 |
| 32 // Set the initial bounds of the popup to show, including the placement |
| 33 // of it. |
| 34 void SetInitialBounds(); |
| 35 |
| 36 // The controller for this view. |
| 37 AutofillPopupController* controller_; // Weak reference. |
| 38 |
| 39 // The native Cocoa window and view. |
| 40 NSWindow* window_; // Weak reference, owns itself. |
| 41 AutofillPopupViewCocoa* view_; // Weak reference, owned by the |window_|. |
| 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewMac); |
| 44 }; |
| 45 |
| 46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_MAC_H_ |
| OLD | NEW |