| 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_MAIN_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 scoped_nsobject<AutofillDetailsContainer> detailsContainer_; | 28 scoped_nsobject<AutofillDetailsContainer> detailsContainer_; |
| 29 AutofillDialogWindowController* target_; | 29 AutofillDialogWindowController* target_; |
| 30 autofill::AutofillDialogController* controller_; // Not owned. | 30 autofill::AutofillDialogController* controller_; // Not owned. |
| 31 } | 31 } |
| 32 | 32 |
| 33 @property(assign, nonatomic) AutofillDialogWindowController* target; | 33 @property(assign, nonatomic) AutofillDialogWindowController* target; |
| 34 | 34 |
| 35 // Designated initializer. | 35 // Designated initializer. |
| 36 - (id)initWithController:(autofill::AutofillDialogController*)controller; | 36 - (id)initWithController:(autofill::AutofillDialogController*)controller; |
| 37 | 37 |
| 38 // Determine preferred size for content. |
| 39 - (NSSize)preferredSize; |
| 40 |
| 41 // Layout contents according to preferredSize; |
| 42 - (void)performLayout; |
| 43 |
| 38 // Returns the view controller responsible for |section|. | 44 // Returns the view controller responsible for |section|. |
| 39 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; | 45 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; |
| 40 | 46 |
| 41 // Called when the controller-maintained suggestions model has changed. | 47 // Called when the controller-maintained suggestions model has changed. |
| 42 - (void)modelChanged; | 48 - (void)modelChanged; |
| 43 | 49 |
| 44 @end | 50 @end |
| 45 | 51 |
| 46 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ | 52 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ |
| OLD | NEW |