OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return controller_->DialogTitle(); | 138 return controller_->DialogTitle(); |
139 } | 139 } |
140 | 140 |
141 void AutofillDialogViews::WindowClosing() { | 141 void AutofillDialogViews::WindowClosing() { |
142 window_->GetFocusManager()->RemoveFocusChangeListener(this); | 142 window_->GetFocusManager()->RemoveFocusChangeListener(this); |
143 } | 143 } |
144 | 144 |
145 void AutofillDialogViews::DeleteDelegate() { | 145 void AutofillDialogViews::DeleteDelegate() { |
146 window_ = NULL; | 146 window_ = NULL; |
147 // |this| belongs to |controller_|. | 147 // |this| belongs to |controller_|. |
148 controller_->ViewClosed(did_submit_ ? ACTION_SUBMIT : ACTION_ABORT); | 148 controller_->ViewClosed(did_submit_ ? ACTION_SUBMIT : ACTION_CANCEL); |
149 } | 149 } |
150 | 150 |
151 views::Widget* AutofillDialogViews::GetWidget() { | 151 views::Widget* AutofillDialogViews::GetWidget() { |
152 return contents_->GetWidget(); | 152 return contents_->GetWidget(); |
153 } | 153 } |
154 | 154 |
155 const views::Widget* AutofillDialogViews::GetWidget() const { | 155 const views::Widget* AutofillDialogViews::GetWidget() const { |
156 return contents_->GetWidget(); | 156 return contents_->GetWidget(); |
157 } | 157 } |
158 | 158 |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 509 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
510 : section(section), | 510 : section(section), |
511 container(NULL), | 511 container(NULL), |
512 manual_input(NULL), | 512 manual_input(NULL), |
513 suggested_info(NULL), | 513 suggested_info(NULL), |
514 suggested_button(NULL) {} | 514 suggested_button(NULL) {} |
515 | 515 |
516 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 516 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
517 | 517 |
518 } // namespace autofill | 518 } // namespace autofill |
OLD | NEW |