| 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/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 9 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 10 #include "chrome/browser/ui/chrome_style.h" | 10 #include "chrome/browser/ui/chrome_style.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void AutofillDialogCocoa::GetUserInput(DialogSection section, | 96 void AutofillDialogCocoa::GetUserInput(DialogSection section, |
| 97 DetailOutputMap* output) { | 97 DetailOutputMap* output) { |
| 98 [sheet_controller_ getInputs:output forSection:section]; | 98 [sheet_controller_ getInputs:output forSection:section]; |
| 99 } | 99 } |
| 100 | 100 |
| 101 string16 AutofillDialogCocoa::GetCvc() { | 101 string16 AutofillDialogCocoa::GetCvc() { |
| 102 return string16(); | 102 return string16(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool AutofillDialogCocoa::SaveDetailsLocally() { | 105 bool AutofillDialogCocoa::SaveDetailsLocally() { |
| 106 return false; | 106 return [sheet_controller_ saveDetailsLocally]; |
| 107 } | 107 } |
| 108 | 108 |
| 109 const content::NavigationController* AutofillDialogCocoa::ShowSignIn() { | 109 const content::NavigationController* AutofillDialogCocoa::ShowSignIn() { |
| 110 return [sheet_controller_ showSignIn]; | 110 return [sheet_controller_ showSignIn]; |
| 111 } | 111 } |
| 112 | 112 |
| 113 void AutofillDialogCocoa::HideSignIn() { | 113 void AutofillDialogCocoa::HideSignIn() { |
| 114 [sheet_controller_ hideSignIn]; | 114 [sheet_controller_ hideSignIn]; |
| 115 } | 115 } |
| 116 | 116 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 [self performLayout]; | 319 [self performLayout]; |
| 320 | 320 |
| 321 return [signInContainer_ navigationController]; | 321 return [signInContainer_ navigationController]; |
| 322 } | 322 } |
| 323 | 323 |
| 324 - (void)getInputs:(autofill::DetailOutputMap*)output | 324 - (void)getInputs:(autofill::DetailOutputMap*)output |
| 325 forSection:(autofill::DialogSection)section { | 325 forSection:(autofill::DialogSection)section { |
| 326 [[mainContainer_ sectionForId:section] getInputs:output]; | 326 [[mainContainer_ sectionForId:section] getInputs:output]; |
| 327 } | 327 } |
| 328 | 328 |
| 329 - (BOOL)saveDetailsLocally { |
| 330 return [mainContainer_ saveDetailsLocally]; |
| 331 } |
| 332 |
| 329 - (void)hideSignIn { | 333 - (void)hideSignIn { |
| 330 [[signInContainer_ view] setHidden:YES]; | 334 [[signInContainer_ view] setHidden:YES]; |
| 331 [[mainContainer_ view] setHidden:NO]; | 335 [[mainContainer_ view] setHidden:NO]; |
| 332 [self performLayout]; | 336 [self performLayout]; |
| 333 } | 337 } |
| 334 | 338 |
| 335 - (void)modelChanged { | 339 - (void)modelChanged { |
| 336 [mainContainer_ modelChanged]; | 340 [mainContainer_ modelChanged]; |
| 337 } | 341 } |
| 338 | 342 |
| 339 @end | 343 @end |
| OLD | NEW |