OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 | 11 |
| 12 class GURL; |
| 13 |
12 namespace autofill { | 14 namespace autofill { |
13 class AutofillDialogCocoa; | 15 class AutofillDialogCocoa; |
14 class AutofillDialogSignInDelegate; | 16 class AutofillDialogSignInDelegate; |
15 } | 17 } |
16 | 18 |
17 namespace content { | 19 namespace content { |
18 class WebContents; | 20 class WebContents; |
19 class NavigationController; | 21 class NavigationController; |
20 } | 22 } |
21 | 23 |
22 // Controls the sign-in dialog of the AutofillDialog. | 24 // Controls the sign-in dialog of the AutofillDialog. |
23 @interface AutofillSignInContainer : NSViewController { | 25 @interface AutofillSignInContainer : NSViewController { |
24 @private | 26 @private |
25 autofill::AutofillDialogCocoa* dialog_; // Not owned. | 27 autofill::AutofillDialogCocoa* dialog_; // Not owned. |
26 scoped_ptr<content::WebContents> webContents_; | 28 scoped_ptr<content::WebContents> webContents_; |
27 scoped_ptr<autofill::AutofillDialogSignInDelegate> signInDelegate_; | 29 scoped_ptr<autofill::AutofillDialogSignInDelegate> signInDelegate_; |
28 | 30 |
29 // The minimum and maximum sizes for the web view. | 31 // The minimum and maximum sizes for the web view. |
30 NSSize maxSize_; | 32 NSSize maxSize_; |
31 NSSize minSize_; | 33 NSSize minSize_; |
32 | 34 |
33 // The preferred size for this view, including both the web view and the | 35 // The preferred size for this view, including both the web view and the |
34 // bottom padding. | 36 // bottom padding. |
35 NSSize preferredSize_; | 37 NSSize preferredSize_; |
36 } | 38 } |
37 | 39 |
38 @property(assign, nonatomic) NSSize preferredSize; | 40 @property(assign, nonatomic) NSSize preferredSize; |
39 | 41 |
40 - (id)initWithDialog:(autofill::AutofillDialogCocoa*)dialog; | 42 - (id)initWithDialog:(autofill::AutofillDialogCocoa*)dialog; |
41 - (void)loadSignInPage; | 43 - (void)loadSignInPage:(const GURL&)url; |
42 - (content::NavigationController*)navigationController; | 44 - (content::NavigationController*)navigationController; |
43 - (void)constrainSizeToMinimum:(NSSize)minSize maximum:(NSSize)maximum; | 45 - (void)constrainSizeToMinimum:(NSSize)minSize maximum:(NSSize)maximum; |
44 - (content::WebContents*)webContents; | 46 - (content::WebContents*)webContents; |
45 | 47 |
46 @end | 48 @end |
47 | 49 |
48 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ | 50 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SIGN_IN_CONTAINER_H_ |
OLD | NEW |