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

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

Issue 663643002: requestAutocomplete (desktop): don't get stuck in infinite loop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_DIALOG_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_WINDOW_CONTROLLER_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 13
14 @class AutofillHeader; 14 @class AutofillHeader;
15 @class AutofillLoadingShieldController; 15 @class AutofillLoadingShieldController;
16 @class AutofillMainContainer; 16 @class AutofillMainContainer;
17 @class AutofillOverlayController; 17 @class AutofillOverlayController;
18 @class AutofillSignInContainer; 18 @class AutofillSignInContainer;
19 19
20 class GURL;
21
20 namespace content { 22 namespace content {
21 class NavigationController; 23 class NavigationController;
22 class WebContents; 24 class WebContents;
23 } // content 25 } // content
24 26
25 namespace autofill { 27 namespace autofill {
26 class AutofillDialogCocoa; 28 class AutofillDialogCocoa;
27 } // autofill 29 } // autofill
28 30
29
30 // Forwarding AutofillDialogView calls. 31 // Forwarding AutofillDialogView calls.
31 @protocol AutofillDialogBridge 32 @protocol AutofillDialogBridge
32 33
33 - (void)show; 34 - (void)show;
34 - (void)hide; 35 - (void)hide;
35 - (void)updateNotificationArea; 36 - (void)updateNotificationArea;
36 - (void)updateAccountChooser; 37 - (void)updateAccountChooser;
37 - (void)updateButtonStrip; 38 - (void)updateButtonStrip;
38 - (void)updateSection:(autofill::DialogSection)section; 39 - (void)updateSection:(autofill::DialogSection)section;
39 - (void)updateForErrors; 40 - (void)updateForErrors;
40 - (void)fillSection:(autofill::DialogSection)section 41 - (void)fillSection:(autofill::DialogSection)section
41 forType:(const autofill::ServerFieldType)type; 42 forType:(const autofill::ServerFieldType)type;
42 - (void)getInputs:(autofill::FieldValueMap*)outputs 43 - (void)getInputs:(autofill::FieldValueMap*)outputs
43 forSection:(autofill::DialogSection)section; 44 forSection:(autofill::DialogSection)section;
44 - (NSString*)getCvc; 45 - (NSString*)getCvc;
45 - (BOOL)saveDetailsLocally; 46 - (BOOL)saveDetailsLocally;
46 - (content::NavigationController*)showSignIn; 47 - (content::NavigationController*)showSignIn:(const GURL&)url;
47 - (void)hideSignIn; 48 - (void)hideSignIn;
48 - (void)modelChanged; 49 - (void)modelChanged;
49 - (void)updateErrorBubble; 50 - (void)updateErrorBubble;
50 - (void)onSignInResize:(NSSize)size; 51 - (void)onSignInResize:(NSSize)size;
51 - (void)validateSection:(autofill::DialogSection)section; 52 - (void)validateSection:(autofill::DialogSection)section;
52 53
53 @end 54 @end
54 55
55 56
56 // Window controller for AutofillDialogView. 57 // Window controller for AutofillDialogView.
(...skipping 27 matching lines...) Expand all
84 // like to use the data. 85 // like to use the data.
85 - (IBAction)accept:(id)sender; 86 - (IBAction)accept:(id)sender;
86 87
87 // User canceled the dialog. 88 // User canceled the dialog.
88 - (IBAction)cancel:(id)sender; 89 - (IBAction)cancel:(id)sender;
89 90
90 @end 91 @end
91 92
92 93
93 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_WINDOW_CONTROLLER_H_ 94 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698