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

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

Issue 49063012: [rAC, OSX] Use bubble windows for error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix failing tests. Created 7 years, 1 month 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"
11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" 12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
13 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h" 13 #import "chrome/browser/ui/cocoa/autofill/autofill_section_container.h"
14 14
15 15
16 namespace autofill { 16 namespace autofill {
17 class AutofillDialogViewDelegate; 17 class AutofillDialogViewDelegate;
18 } 18 }
19 19
20 @class InfoBubbleView; 20 @class InfoBubbleView;
21 @class AutofillErrorBubbleController;
21 22
22 // UI controller for details for current payment instrument. 23 // UI controller for details for current payment instrument.
23 @interface AutofillDetailsContainer 24 @interface AutofillDetailsContainer
24 : NSViewController<AutofillLayout, 25 : NSViewController<AutofillLayout,
25 AutofillValidationDisplay> { 26 AutofillValidationDisplay> {
26 @private 27 @private
27 // Scroll view containing all detail sections. 28 // Scroll view containing all detail sections.
28 base::scoped_nsobject<NSScrollView> scrollView_; 29 base::scoped_nsobject<NSScrollView> scrollView_;
29 30
30 // The individual detail sections. 31 // The individual detail sections.
31 base::scoped_nsobject<NSMutableArray> details_; 32 base::scoped_nsobject<NSMutableArray> details_;
32 33
33 // An info bubble to display validation errors. 34 // An info bubble to display validation errors.
34 base::scoped_nsobject<InfoBubbleView> errorBubble_; 35 base::scoped_nsobject<InfoBubbleView> errorBubble_;
35 36
37 AutofillErrorBubbleController* errorBubbleController_;
38
36 autofill::AutofillDialogViewDelegate* delegate_; // Not owned. 39 autofill::AutofillDialogViewDelegate* delegate_; // Not owned.
37 } 40 }
38 41
39 // Designated initializer. 42 // Designated initializer.
40 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate; 43 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
41 44
42 // Retrieve the container for the specified |section|. 45 // Retrieve the container for the specified |section|.
43 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; 46 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section;
44 47
45 // Called when |errorBubble_| needs to be updated. 48 // Called when |errorBubble_| needs to be updated.
46 - (void)updateErrorBubble; 49 - (void)updateErrorBubble;
47 50
48 // Called when the delegate-maintained suggestions model has changed. 51 // Called when the delegate-maintained suggestions model has changed.
49 - (void)modelChanged; 52 - (void)modelChanged;
50 53
51 // Validate every visible details section. 54 // Validate every visible details section.
52 - (BOOL)validate; 55 - (BOOL)validate;
53 56
54 @end 57 @end
55 58
56 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ 59 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698