OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" | 11 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 class AutofillPopupController; | 14 class AutofillPopupController; |
| 15 class AutofillPopupViewCocoaDelegate; |
15 } // namespace autofill | 16 } // namespace autofill |
16 | 17 |
17 // Draws the native Autofill popup view on Mac. | 18 // Draws the native Autofill popup view on Mac. |
18 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa { | 19 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa { |
19 @private | 20 @private |
20 // The cross-platform controller for this view. | 21 // The cross-platform controller for this view. |
21 autofill::AutofillPopupController* controller_; // weak | 22 autofill::AutofillPopupController* controller_; // weak |
| 23 // The delegate back to the AutofillPopupViewBridge. |
| 24 autofill::AutofillPopupViewCocoaDelegate* delegate_; // weak |
22 } | 25 } |
23 | 26 |
24 // Designated initializer. | 27 // Designated initializer. |
25 - (id)initWithController:(autofill::AutofillPopupController*)controller | 28 - (id)initWithController:(autofill::AutofillPopupController*)controller |
26 frame:(NSRect)frame; | 29 frame:(NSRect)frame |
| 30 delegate:(autofill::AutofillPopupViewCocoaDelegate*)delegate; |
27 | 31 |
28 // Informs the view that its controller has been (or will imminently be) | 32 // Informs the view that its controller has been (or will imminently be) |
29 // destroyed. | 33 // destroyed. |
30 - (void)controllerDestroyed; | 34 - (void)controllerDestroyed; |
31 | 35 |
32 - (void)invalidateRow:(size_t)row; | 36 - (void)invalidateRow:(size_t)row; |
33 | 37 |
34 @end | 38 @end |
35 | 39 |
36 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ | 40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ |
OLD | NEW |