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

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

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 5 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_DIALOG_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
7 7
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
11 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" 11 #include "chrome/browser/ui/autofill/autofill_dialog_view.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" 12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
13 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 13 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
14 14
15 namespace content { 15 namespace content {
16 class NavigationController; 16 class NavigationController;
17 } 17 }
18 18
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual void OnConstrainedWindowClosed( 59 virtual void OnConstrainedWindowClosed(
60 ConstrainedWindowMac* window) OVERRIDE; 60 ConstrainedWindowMac* window) OVERRIDE;
61 61
62 AutofillDialogController* controller() { return controller_; } 62 AutofillDialogController* controller() { return controller_; }
63 63
64 void PerformClose(); 64 void PerformClose();
65 65
66 private: 66 private:
67 67
68 scoped_ptr<ConstrainedWindowMac> constrained_window_; 68 scoped_ptr<ConstrainedWindowMac> constrained_window_;
69 scoped_nsobject<AutofillDialogWindowController> sheet_controller_; 69 base::scoped_nsobject<AutofillDialogWindowController> sheet_controller_;
70 70
71 // The controller |this| queries for logic and state. 71 // The controller |this| queries for logic and state.
72 AutofillDialogController* controller_; 72 AutofillDialogController* controller_;
73 }; 73 };
74 74
75 } // autofill 75 } // autofill
76 76
77 @interface AutofillDialogWindowController : 77 @interface AutofillDialogWindowController :
78 NSWindowController<NSWindowDelegate, AutofillLayout> { 78 NSWindowController<NSWindowDelegate, AutofillLayout> {
79 @private 79 @private
80 content::WebContents* webContents_; // weak. 80 content::WebContents* webContents_; // weak.
81 autofill::AutofillDialogCocoa* autofillDialog_; // weak. 81 autofill::AutofillDialogCocoa* autofillDialog_; // weak.
82 82
83 scoped_nsobject<AutofillMainContainer> mainContainer_; 83 base::scoped_nsobject<AutofillMainContainer> mainContainer_;
84 scoped_nsobject<AutofillSignInContainer> signInContainer_; 84 base::scoped_nsobject<AutofillSignInContainer> signInContainer_;
85 scoped_nsobject<AutofillAccountChooser> accountChooser_; 85 base::scoped_nsobject<AutofillAccountChooser> accountChooser_;
86 } 86 }
87 87
88 // Designated initializer. The WebContents cannot be NULL. 88 // Designated initializer. The WebContents cannot be NULL.
89 - (id)initWithWebContents:(content::WebContents*)webContents 89 - (id)initWithWebContents:(content::WebContents*)webContents
90 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; 90 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog;
91 91
92 // A child view request re-layouting. 92 // A child view request re-layouting.
93 - (void)requestRelayout; 93 - (void)requestRelayout;
94 94
95 // Validate data. If it is valid, notify the controller that the user would 95 // Validate data. If it is valid, notify the controller that the user would
96 // like to use the data. 96 // like to use the data.
97 - (IBAction)accept:(id)sender; 97 - (IBAction)accept:(id)sender;
98 98
99 // User cancels dialog. 99 // User cancels dialog.
100 - (IBAction)cancel:(id)sender; 100 - (IBAction)cancel:(id)sender;
101 101
102 // Forwarding AutofillDialogView calls. 102 // Forwarding AutofillDialogView calls.
103 - (void)updateAccountChooser; 103 - (void)updateAccountChooser;
104 - (void)updateSection:(autofill::DialogSection)section; 104 - (void)updateSection:(autofill::DialogSection)section;
105 - (void)getInputs:(autofill::DetailOutputMap*)outputs 105 - (void)getInputs:(autofill::DetailOutputMap*)outputs
106 forSection:(autofill::DialogSection)section; 106 forSection:(autofill::DialogSection)section;
107 - (content::NavigationController*)showSignIn; 107 - (content::NavigationController*)showSignIn;
108 - (void)hideSignIn; 108 - (void)hideSignIn;
109 - (void)modelChanged; 109 - (void)modelChanged;
110 110
111 @end 111 @end
112 112
113 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 113 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698