BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_notification_container.h
blob195ec010002d8d0697e22192bb96c9dd565dda5f
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_
8 #import <Cocoa/Cocoa.h>
10 #include <vector>
12 #include "base/mac/scoped_nsobject.h"
13 #include "base/memory/scoped_ptr.h"
14 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
16 @class AutofillArrowView;
18 namespace autofill {
19 class DialogNotification;
20 typedef std::vector<DialogNotification> DialogNotifications;
21 class AutofillDialogViewDelegate;
24 // Container for all notifications shown in requestAutocomplete dialog.
25 @interface AutofillNotificationContainer : NSViewController<AutofillLayout> {
26 @private
27 // Array of all AutofillNotificationControllers.
28 base::scoped_nsobject<NSMutableArray> notificationControllers_;
30 // Main delegate for the dialog. Weak, owns dialog.
31 autofill::AutofillDialogViewDelegate* delegate_;
34 // Designated initializer.
35 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
37 // Computes the views preferred size given a fixed width.
38 - (NSSize)preferredSizeForWidth:(CGFloat)width;
40 // Sets the notification contents.
41 - (void)setNotifications:(const autofill::DialogNotifications&) notifications;
43 @end
45 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTAINER_H_