Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_notification_container.h

Issue 21692002: Rename AutofillDialogController to AutofillDialogViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NOTIFICATION_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/mac/scoped_nsobject.h" 12 #include "base/mac/scoped_nsobject.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" 14 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
15 15
16 @class AutofillArrowView; 16 @class AutofillArrowView;
17 17
18 namespace autofill { 18 namespace autofill {
19 class DialogNotification; 19 class DialogNotification;
20 typedef std::vector<DialogNotification> DialogNotifications; 20 typedef std::vector<DialogNotification> DialogNotifications;
21 class AutofillDialogController; 21 class AutofillDialogViewDelegate;
22 } 22 }
23 23
24 // Container for all notifications shown in requestAutocomplete dialog. 24 // Container for all notifications shown in requestAutocomplete dialog.
25 @interface AutofillNotificationContainer : NSViewController<AutofillLayout> { 25 @interface AutofillNotificationContainer : NSViewController<AutofillLayout> {
26 @private 26 @private
27 // Array of all AutofillNotificationControllers. 27 // Array of all AutofillNotificationControllers.
28 base::scoped_nsobject<NSMutableArray> notificationControllers_; 28 base::scoped_nsobject<NSMutableArray> notificationControllers_;
29 29
30 // View that the arrow is anchored to. Weak. 30 // View that the arrow is anchored to. Weak.
31 NSView* anchorView_; 31 NSView* anchorView_;
32 32
33 // The notification that the checkbox is associated with. 33 // The notification that the checkbox is associated with.
34 scoped_ptr<autofill::DialogNotification> checkboxNotification_; 34 scoped_ptr<autofill::DialogNotification> checkboxNotification_;
35 35
36 // Main controller for the dialog. Weak, owns dialog. 36 // Main delegate for the dialog. Weak, owns dialog.
37 autofill::AutofillDialogController* controller_; 37 autofill::AutofillDialogViewDelegate* delegate_;
38 } 38 }
39 39
40 // Designated initializer. 40 // Designated initializer.
41 - (id)initWithController:(autofill::AutofillDialogController*)controller; 41 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
42 42
43 // Computes the views preferred size given a fixed width. 43 // Computes the views preferred size given a fixed width.
44 - (NSSize)preferredSizeForWidth:(CGFloat)width; 44 - (NSSize)preferredSizeForWidth:(CGFloat)width;
45 45
46 // Sets the notification contents. 46 // Sets the notification contents.
47 - (void)setNotifications:(const autofill::DialogNotifications&) notifications; 47 - (void)setNotifications:(const autofill::DialogNotifications&) notifications;
48 48
49 // Sets a view that the arrow is anchored to - center of arrow will be aligned 49 // Sets a view that the arrow is anchored to - center of arrow will be aligned
50 // with center of anchorView. (horizontally only). 50 // with center of anchorView. (horizontally only).
51 - (void)setAnchorView:(NSView*)anchorView; 51 - (void)setAnchorView:(NSView*)anchorView;
52 52
53 - (IBAction)checkboxClicked:(id)sender; 53 - (IBAction)checkboxClicked:(id)sender;
54 54
55 @end 55 @end
56 56
57 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_ 57 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698