1 // Copyright (c) 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_SIGN_IN_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/memory/scoped_ptr.h"
13 class AutofillDialogCocoa
;
14 class AutofillDialogSignInDelegate
;
19 class NavigationController
;
22 // Controls the sign-in dialog of the AutofillDialog.
23 @interface AutofillSignInContainer
: NSViewController
{
25 autofill::AutofillDialogCocoa
* dialog_
; // Not owned.
26 scoped_ptr
<content::WebContents
> webContents_
;
27 scoped_ptr
<autofill::AutofillDialogSignInDelegate
> signInDelegate_
;
29 // The minimum and maximum sizes for the web view.
33 // The preferred size for this view, including both the web view and the
35 NSSize preferredSize_
;
38 @
property(assign
, nonatomic
) NSSize preferredSize
;
40 - (id
)initWithDialog
:(autofill::AutofillDialogCocoa
*)dialog
;
41 - (void)loadSignInPage
;
42 - (content::NavigationController
*)navigationController
;
43 - (void)constrainSizeToMinimum
:(NSSize
)minSize maximum
:(NSSize
)maximum
;
44 - (content::WebContents
*)webContents
;
48 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_