Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_details_container.h

Issue 123703002: [rAC] Do not re-create bubble window unnecessarily (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix misspelled comment. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698