| 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_DETAILS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_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 18 matching lines...) Expand all Loading... |
| 29 base::scoped_nsobject<NSScrollView> scrollView_; | 29 base::scoped_nsobject<NSScrollView> scrollView_; |
| 30 | 30 |
| 31 // The individual detail sections. | 31 // The individual detail sections. |
| 32 base::scoped_nsobject<NSMutableArray> details_; | 32 base::scoped_nsobject<NSMutableArray> details_; |
| 33 | 33 |
| 34 // An info bubble to display validation errors. | 34 // An info bubble to display validation errors. |
| 35 base::scoped_nsobject<InfoBubbleView> errorBubble_; | 35 base::scoped_nsobject<InfoBubbleView> errorBubble_; |
| 36 | 36 |
| 37 AutofillBubbleController* errorBubbleController_; | 37 AutofillBubbleController* errorBubbleController_; |
| 38 | 38 |
| 39 // The view the current error bubble is anchored to. |
| 40 NSView* errorBubbleAnchorView_; |
| 41 |
| 39 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. | 42 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. |
| 40 } | 43 } |
| 41 | 44 |
| 42 // Designated initializer. | 45 // Designated initializer. |
| 43 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate; | 46 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate; |
| 44 | 47 |
| 45 // Retrieve the container for the specified |section|. | 48 // Retrieve the container for the specified |section|. |
| 46 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; | 49 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; |
| 47 | 50 |
| 48 // Called when |errorBubble_| needs to be updated. | 51 // Called when |errorBubble_| needs to be updated. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 61 // Finds the first visible user input field. Returns nil if no field is found. | 64 // Finds the first visible user input field. Returns nil if no field is found. |
| 62 // Looks at both direct input fields and input fields in suggestions. | 65 // Looks at both direct input fields and input fields in suggestions. |
| 63 - (NSControl*)firstVisibleField; | 66 - (NSControl*)firstVisibleField; |
| 64 | 67 |
| 65 // Positions the scrollview so that given |field| is visible. | 68 // Positions the scrollview so that given |field| is visible. |
| 66 - (void)scrollToView:(NSView*)field; | 69 - (void)scrollToView:(NSView*)field; |
| 67 | 70 |
| 68 @end | 71 @end |
| 69 | 72 |
| 70 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ | 73 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ |
| OLD | NEW |