// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ #import #include "base/memory/scoped_ptr.h" class GURL; namespace autofill { class AutofillDialogCocoa; class AutofillDialogSignInDelegate; } namespace content { class WebContents; class NavigationController; } // Controls the sign-in dialog of the AutofillDialog. @interface AutofillSignInContainer : NSViewController { @private autofill::AutofillDialogCocoa* dialog_; // Not owned. scoped_ptr webContents_; scoped_ptr signInDelegate_; // The minimum and maximum sizes for the web view. NSSize maxSize_; NSSize minSize_; // The preferred size for this view, including both the web view and the // bottom padding. NSSize preferredSize_; } @property(assign, nonatomic) NSSize preferredSize; - (id)initWithDialog:(autofill::AutofillDialogCocoa*)dialog; - (void)loadSignInPage:(const GURL&)url; - (content::NavigationController*)navigationController; - (void)constrainSizeToMinimum:(NSSize)minSize maximum:(NSSize)maximum; - (content::WebContents*)webContents; @end #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_