| 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 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 void AutofillDialogCocoa::UpdateOverlay() { | 77 void AutofillDialogCocoa::UpdateOverlay() { |
| 78 // TODO(estade): only update the overlay. | 78 // TODO(estade): only update the overlay. |
| 79 UpdateButtonStrip(); | 79 UpdateButtonStrip(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void AutofillDialogCocoa::UpdateDetailArea() { | 82 void AutofillDialogCocoa::UpdateDetailArea() { |
| 83 } | 83 } |
| 84 | 84 |
| 85 void AutofillDialogCocoa::UpdateForErrors() { | 85 void AutofillDialogCocoa::UpdateForErrors() { |
| 86 [sheet_delegate_ updateForErrors]; |
| 86 } | 87 } |
| 87 | 88 |
| 88 void AutofillDialogCocoa::UpdateNotificationArea() { | 89 void AutofillDialogCocoa::UpdateNotificationArea() { |
| 89 [sheet_delegate_ updateNotificationArea]; | 90 [sheet_delegate_ updateNotificationArea]; |
| 90 } | 91 } |
| 91 | 92 |
| 92 void AutofillDialogCocoa::UpdateSection(DialogSection section) { | 93 void AutofillDialogCocoa::UpdateSection(DialogSection section) { |
| 93 [sheet_delegate_ updateSection:section]; | 94 [sheet_delegate_ updateSection:section]; |
| 94 } | 95 } |
| 95 | 96 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 196 } |
| 196 | 197 |
| 197 void AutofillDialogCocoa::OnConstrainedWindowClosed( | 198 void AutofillDialogCocoa::OnConstrainedWindowClosed( |
| 198 ConstrainedWindowMac* window) { | 199 ConstrainedWindowMac* window) { |
| 199 constrained_window_.reset(); | 200 constrained_window_.reset(); |
| 200 // |this| belongs to |delegate_|, so no self-destruction here. | 201 // |this| belongs to |delegate_|, so no self-destruction here. |
| 201 delegate_->ViewClosed(); | 202 delegate_->ViewClosed(); |
| 202 } | 203 } |
| 203 | 204 |
| 204 } // autofill | 205 } // autofill |
| OLD | NEW |