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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container.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, 6 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_MAIN_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/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 AutofillDetailsContainer; 14 @class AutofillDetailsContainer;
15 @class AutofillDialogWindowController; 15 @class AutofillDialogWindowController;
16 @class AutofillSectionContainer; 16 @class AutofillSectionContainer;
17 @class GTMWidthBasedTweaker; 17 @class GTMWidthBasedTweaker;
18 18
19 namespace autofill { 19 namespace autofill {
20 class AutofillDialogController; 20 class AutofillDialogController;
21 } 21 }
22 22
23 // NSViewController for the main portion of the autofill dialog. Contains 23 // NSViewController for the main portion of the autofill dialog. Contains
24 // account chooser, details for current payment instruments, OK/Cancel. 24 // account chooser, details for current payment instruments, OK/Cancel.
25 // Might dynamically add and remove other elements. 25 // Might dynamically add and remove other elements.
26 @interface AutofillMainContainer : NSViewController<AutofillLayout> { 26 @interface AutofillMainContainer : NSViewController<AutofillLayout> {
27 @private 27 @private
28 scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_; 28 base::scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_;
29 scoped_nsobject<AutofillDetailsContainer> detailsContainer_; 29 base::scoped_nsobject<AutofillDetailsContainer> detailsContainer_;
30 AutofillDialogWindowController* target_; 30 AutofillDialogWindowController* target_;
31 autofill::AutofillDialogController* controller_; // Not owned. 31 autofill::AutofillDialogController* controller_; // Not owned.
32 } 32 }
33 33
34 @property(assign, nonatomic) AutofillDialogWindowController* target; 34 @property(assign, nonatomic) AutofillDialogWindowController* target;
35 35
36 // Designated initializer. 36 // Designated initializer.
37 - (id)initWithController:(autofill::AutofillDialogController*)controller; 37 - (id)initWithController:(autofill::AutofillDialogController*)controller;
38 38
39 // Returns the view controller responsible for |section|. 39 // Returns the view controller responsible for |section|.
40 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; 40 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section;
41 41
42 // Called when the controller-maintained suggestions model has changed. 42 // Called when the controller-maintained suggestions model has changed.
43 - (void)modelChanged; 43 - (void)modelChanged;
44 44
45 @end 45 @end
46 46
47 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ 47 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698