| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |