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 | 9 |
10 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" | 10 #import "chrome/browser/ui/cocoa/autofill/autofill_popup_base_view_cocoa.h" |
11 | 11 |
12 namespace autofill { | 12 namespace autofill { |
13 class AutofillPopupController; | 13 class AutofillPopupController; |
14 } // namespace autofill | 14 } // namespace autofill |
15 | 15 |
16 // Draws the native Autofill popup view on Mac. | 16 // Draws the native Autofill popup view on Mac. |
17 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa { | 17 @interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa { |
18 @private | 18 @private |
19 // The cross-platform controller for this view. | 19 // The cross-platform controller for this view. |
20 __weak autofill::AutofillPopupController* controller_; | 20 autofill::AutofillPopupController* controller_; // weak |
21 } | 21 } |
22 | 22 |
23 // Designated initializer. | 23 // Designated initializer. |
24 - (id)initWithController:(autofill::AutofillPopupController*)controller | 24 - (id)initWithController:(autofill::AutofillPopupController*)controller |
25 frame:(NSRect)frame; | 25 frame:(NSRect)frame; |
26 | 26 |
27 // Informs the view that its controller has been (or will imminently be) | 27 // Informs the view that its controller has been (or will imminently be) |
28 // destroyed. | 28 // destroyed. |
29 - (void)controllerDestroyed; | 29 - (void)controllerDestroyed; |
30 | 30 |
31 - (void)invalidateRow:(size_t)row; | 31 - (void)invalidateRow:(size_t)row; |
32 | 32 |
33 @end | 33 @end |
34 | 34 |
35 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ | 35 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_POPUP_VIEW_COCOA_H_ |
OLD | NEW |