| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 - (content::NavigationController*)showSignIn { | 371 - (content::NavigationController*)showSignIn { |
| 372 [self updateSignInSizeConstraints]; | 372 [self updateSignInSizeConstraints]; |
| 373 [signInContainer_ loadSignInPage]; | 373 [signInContainer_ loadSignInPage]; |
| 374 [[signInContainer_ view] setHidden:NO]; | 374 [[signInContainer_ view] setHidden:NO]; |
| 375 [self updateMainContainerVisibility]; | 375 [self updateMainContainerVisibility]; |
| 376 [self requestRelayout]; | 376 [self requestRelayout]; |
| 377 | 377 |
| 378 return [signInContainer_ navigationController]; | 378 return [signInContainer_ navigationController]; |
| 379 } | 379 } |
| 380 | 380 |
| 381 - (void)getInputs:(autofill::DetailOutputMap*)output | 381 - (void)getInputs:(autofill::FieldValueMap*)output |
| 382 forSection:(autofill::DialogSection)section { | 382 forSection:(autofill::DialogSection)section { |
| 383 [[mainContainer_ sectionForId:section] getInputs:output]; | 383 [[mainContainer_ sectionForId:section] getInputs:output]; |
| 384 } | 384 } |
| 385 | 385 |
| 386 - (NSString*)getCvc { | 386 - (NSString*)getCvc { |
| 387 autofill::DialogSection section = autofill::SECTION_CC; | 387 autofill::DialogSection section = autofill::SECTION_CC; |
| 388 NSString* value = [[mainContainer_ sectionForId:section] suggestionText]; | 388 NSString* value = [[mainContainer_ sectionForId:section] suggestionText]; |
| 389 if (!value) { | 389 if (!value) { |
| 390 section = autofill::SECTION_CC_BILLING; | 390 section = autofill::SECTION_CC_BILLING; |
| 391 value = [[mainContainer_ sectionForId:section] suggestionText]; | 391 value = [[mainContainer_ sectionForId:section] suggestionText]; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 | 444 |
| 445 - (content::WebContents*)getSignInWebContents { | 445 - (content::WebContents*)getSignInWebContents { |
| 446 return [signInContainer_ webContents]; | 446 return [signInContainer_ webContents]; |
| 447 } | 447 } |
| 448 | 448 |
| 449 - (BOOL)isShowingOverlay { | 449 - (BOOL)isShowingOverlay { |
| 450 return ![[overlayController_ view] isHidden]; | 450 return ![[overlayController_ view] isHidden]; |
| 451 } | 451 } |
| 452 | 452 |
| 453 @end | 453 @end |
| OLD | NEW |