| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 - (content::NavigationController*)showSignIn { | 344 - (content::NavigationController*)showSignIn { |
| 345 [self updateSignInSizeConstraints]; | 345 [self updateSignInSizeConstraints]; |
| 346 [signInContainer_ loadSignInPage]; | 346 [signInContainer_ loadSignInPage]; |
| 347 [[mainContainer_ view] setHidden:YES]; | 347 [[mainContainer_ view] setHidden:YES]; |
| 348 [[signInContainer_ view] setHidden:NO]; | 348 [[signInContainer_ view] setHidden:NO]; |
| 349 [self requestRelayout]; | 349 [self requestRelayout]; |
| 350 | 350 |
| 351 return [signInContainer_ navigationController]; | 351 return [signInContainer_ navigationController]; |
| 352 } | 352 } |
| 353 | 353 |
| 354 - (void)getInputs:(autofill::DetailOutputMap*)output | 354 - (void)getInputs:(autofill::FieldValueMap*)output |
| 355 forSection:(autofill::DialogSection)section { | 355 forSection:(autofill::DialogSection)section { |
| 356 [[mainContainer_ sectionForId:section] getInputs:output]; | 356 [[mainContainer_ sectionForId:section] getInputs:output]; |
| 357 } | 357 } |
| 358 | 358 |
| 359 - (NSString*)getCvc { | 359 - (NSString*)getCvc { |
| 360 autofill::DialogSection section = autofill::SECTION_CC; | 360 autofill::DialogSection section = autofill::SECTION_CC; |
| 361 NSString* value = [[mainContainer_ sectionForId:section] suggestionText]; | 361 NSString* value = [[mainContainer_ sectionForId:section] suggestionText]; |
| 362 if (!value) { | 362 if (!value) { |
| 363 section = autofill::SECTION_CC_BILLING; | 363 section = autofill::SECTION_CC_BILLING; |
| 364 value = [[mainContainer_ sectionForId:section] suggestionText]; | 364 value = [[mainContainer_ sectionForId:section] suggestionText]; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 - (content::WebContents*)getSignInWebContents { | 418 - (content::WebContents*)getSignInWebContents { |
| 419 return [signInContainer_ webContents]; | 419 return [signInContainer_ webContents]; |
| 420 } | 420 } |
| 421 | 421 |
| 422 - (BOOL)isShowingOverlay { | 422 - (BOOL)isShowingOverlay { |
| 423 return ![[overlayController_ view] isHidden]; | 423 return ![[overlayController_ view] isHidden]; |
| 424 } | 424 } |
| 425 | 425 |
| 426 @end | 426 @end |
| OLD | NEW |