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_SECTION_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // The view for the container. | 46 // The view for the container. |
47 base::scoped_nsobject<AutofillSectionView> view_; | 47 base::scoped_nsobject<AutofillSectionView> view_; |
48 | 48 |
49 // List of weak pointers, which constitute unique field IDs. | 49 // List of weak pointers, which constitute unique field IDs. |
50 std::vector<const autofill::DetailInput*> detailInputs_; | 50 std::vector<const autofill::DetailInput*> detailInputs_; |
51 | 51 |
52 // A delegate to handle display of validation messages. Not owned. | 52 // A delegate to handle display of validation messages. Not owned. |
53 id<AutofillValidationDisplay> validationDelegate_; | 53 id<AutofillValidationDisplay> validationDelegate_; |
54 | 54 |
| 55 // Indicate whether the dialog should show suggestions or manual inputs when |
| 56 // performLayout is triggered. |
| 57 BOOL showSuggestions_; |
| 58 |
55 base::scoped_nsobject<MenuController> menuController_; | 59 base::scoped_nsobject<MenuController> menuController_; |
56 autofill::DialogSection section_; | 60 autofill::DialogSection section_; |
57 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. | 61 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. |
58 } | 62 } |
59 | 63 |
60 @property(readonly, nonatomic) autofill::DialogSection section; | 64 @property(readonly, nonatomic) autofill::DialogSection section; |
61 @property(assign, nonatomic) id<AutofillValidationDisplay> validationDelegate; | 65 @property(assign, nonatomic) id<AutofillValidationDisplay> validationDelegate; |
62 | 66 |
63 // Designated initializer. Queries |delegate| for the list of desired input | 67 // Designated initializer. Queries |delegate| for the list of desired input |
64 // fields for |section|. | 68 // fields for |section|. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Sets the value for the suggestion text field. | 100 // Sets the value for the suggestion text field. |
97 - (void)setSuggestionFieldValue:(NSString*)text; | 101 - (void)setSuggestionFieldValue:(NSString*)text; |
98 | 102 |
99 // Activates a given input field, determined by |input|. Does nothing if the | 103 // Activates a given input field, determined by |input|. Does nothing if the |
100 // field is not part of this section. | 104 // field is not part of this section. |
101 - (void)activateFieldForInput:(const autofill::DetailInput&)input; | 105 - (void)activateFieldForInput:(const autofill::DetailInput&)input; |
102 | 106 |
103 @end | 107 @end |
104 | 108 |
105 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 109 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
OLD | NEW |