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"
15 class AutofillDialogCocoa
;
16 class AutofillDialogSignInDelegate
;
21 class NavigationController
;
24 // Controls the sign-in dialog of the AutofillDialog.
25 @interface AutofillSignInContainer
: NSViewController
{
27 autofill::AutofillDialogCocoa
* dialog_
; // Not owned.
28 scoped_ptr
<content::WebContents
> webContents_
;
29 scoped_ptr
<autofill::AutofillDialogSignInDelegate
> signInDelegate_
;
31 // The minimum and maximum sizes for the web view.
35 // The preferred size for this view, including both the web view and the
37 NSSize preferredSize_
;
40 @
property(assign
, nonatomic
) NSSize preferredSize
;
42 - (id
)initWithDialog
:(autofill::AutofillDialogCocoa
*)dialog
;
43 - (void)loadSignInPage
:(const GURL
&)url
;
44 - (content::NavigationController
*)navigationController
;
45 - (void)constrainSizeToMinimum
:(NSSize
)minSize maximum
:(NSSize
)maximum
;
46 - (content::WebContents
*)webContents
;
50 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_