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/bundle_locations.h" | 8 #include "base/mac/bundle_locations.h" |
9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void AutofillDialogCocoa::UpdateDetailArea() { | 98 void AutofillDialogCocoa::UpdateDetailArea() { |
99 } | 99 } |
100 | 100 |
101 void AutofillDialogCocoa::UpdateForErrors() { | 101 void AutofillDialogCocoa::UpdateForErrors() { |
102 } | 102 } |
103 | 103 |
104 void AutofillDialogCocoa::UpdateNotificationArea() { | 104 void AutofillDialogCocoa::UpdateNotificationArea() { |
105 [sheet_delegate_ updateNotificationArea]; | 105 [sheet_delegate_ updateNotificationArea]; |
106 } | 106 } |
107 | 107 |
108 void AutofillDialogCocoa::UpdateAutocheckoutStepsArea() { | |
109 } | |
110 | |
111 void AutofillDialogCocoa::UpdateSection(DialogSection section) { | 108 void AutofillDialogCocoa::UpdateSection(DialogSection section) { |
112 [sheet_delegate_ updateSection:section]; | 109 [sheet_delegate_ updateSection:section]; |
113 } | 110 } |
114 | 111 |
115 void AutofillDialogCocoa::FillSection(DialogSection section, | 112 void AutofillDialogCocoa::FillSection(DialogSection section, |
116 const DetailInput& originating_input) { | 113 const DetailInput& originating_input) { |
117 [sheet_delegate_ fillSection:section forInput:originating_input]; | 114 [sheet_delegate_ fillSection:section forInput:originating_input]; |
118 } | 115 } |
119 | 116 |
120 void AutofillDialogCocoa::GetUserInput(DialogSection section, | 117 void AutofillDialogCocoa::GetUserInput(DialogSection section, |
(...skipping 10 matching lines...) Expand all Loading... |
131 } | 128 } |
132 | 129 |
133 const content::NavigationController* AutofillDialogCocoa::ShowSignIn() { | 130 const content::NavigationController* AutofillDialogCocoa::ShowSignIn() { |
134 return [sheet_delegate_ showSignIn]; | 131 return [sheet_delegate_ showSignIn]; |
135 } | 132 } |
136 | 133 |
137 void AutofillDialogCocoa::HideSignIn() { | 134 void AutofillDialogCocoa::HideSignIn() { |
138 [sheet_delegate_ hideSignIn]; | 135 [sheet_delegate_ hideSignIn]; |
139 } | 136 } |
140 | 137 |
141 void AutofillDialogCocoa::UpdateProgressBar(double value) {} | |
142 | |
143 void AutofillDialogCocoa::ModelChanged() { | 138 void AutofillDialogCocoa::ModelChanged() { |
144 [sheet_delegate_ modelChanged]; | 139 [sheet_delegate_ modelChanged]; |
145 } | 140 } |
146 | 141 |
147 void AutofillDialogCocoa::OnSignInResize(const gfx::Size& pref_size) { | 142 void AutofillDialogCocoa::OnSignInResize(const gfx::Size& pref_size) { |
148 // TODO(groby): Implement Mac support for this. | 143 // TODO(groby): Implement Mac support for this. |
149 } | 144 } |
150 | 145 |
151 TestableAutofillDialogView* AutofillDialogCocoa::GetTestableView() { | 146 TestableAutofillDialogView* AutofillDialogCocoa::GetTestableView() { |
152 return this; | 147 return this; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 425 } |
431 | 426 |
432 - (void)activateFieldForInput:(const autofill::DetailInput&)input { | 427 - (void)activateFieldForInput:(const autofill::DetailInput&)input { |
433 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { | 428 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { |
434 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); | 429 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); |
435 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; | 430 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; |
436 } | 431 } |
437 } | 432 } |
438 | 433 |
439 @end | 434 @end |
OLD | NEW |