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

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

Issue 572853002: Realigning the WeakPtrFactory initialization order in chrome/ui folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed mac error Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/mac/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 "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 private: 69 private:
70 friend class AutofillDialogViewTesterCocoa; 70 friend class AutofillDialogViewTesterCocoa;
71 71
72 // Closes the sheet and ends the modal loop. Triggers cleanup sequence. 72 // Closes the sheet and ends the modal loop. Triggers cleanup sequence.
73 void CloseNow(); 73 void CloseNow();
74 74
75 scoped_ptr<ConstrainedWindowMac> constrained_window_; 75 scoped_ptr<ConstrainedWindowMac> constrained_window_;
76 base::scoped_nsobject<AutofillDialogWindowController> sheet_delegate_; 76 base::scoped_nsobject<AutofillDialogWindowController> sheet_delegate_;
77 77
78 // The delegate |this| queries for logic and state.
79 AutofillDialogViewDelegate* delegate_;
80
78 // WeakPtrFactory for deferred close. 81 // WeakPtrFactory for deferred close.
79 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_; 82 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_;
80 83
81 // The delegate |this| queries for logic and state.
82 AutofillDialogViewDelegate* delegate_;
83 }; 84 };
84 85
85 } // autofill 86 } // autofill
86 87
87 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 88 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698