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_OVERLAY_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #include "base/memory/scoped_ptr.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
15 class AutofillDialogViewDelegate
;
16 struct DialogOverlayState
;
19 @
class AutofillMessageView
;
21 @interface AutofillOverlayController
: NSViewController
<AutofillLayout
> {
23 base::scoped_nsobject
<NSImageView
> imageView_
;
24 base::scoped_nsobject
<AutofillMessageView
> messageView_
;
26 autofill::AutofillDialogViewDelegate
* delegate_
; // not owned, owns dialog.
29 // Designated initializer.
30 - (id
)initWithDelegate
:(autofill::AutofillDialogViewDelegate
*)delegate
;
32 // Updates the state from the dialog controller.
35 // Get the preferred view height for a given width.
36 - (CGFloat
)heightForWidth
:(int)width
;
40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_