| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 [self requestRelayout]; | 493 [self requestRelayout]; |
| 494 } | 494 } |
| 495 } | 495 } |
| 496 | 496 |
| 497 - (void)updateButtonStrip { | 497 - (void)updateButtonStrip { |
| 498 [overlayController_ updateState]; | 498 [overlayController_ updateState]; |
| 499 } | 499 } |
| 500 | 500 |
| 501 - (void)updateSection:(autofill::DialogSection)section { | 501 - (void)updateSection:(autofill::DialogSection)section { |
| 502 [[mainContainer_ sectionForId:section] update]; | 502 [[mainContainer_ sectionForId:section] update]; |
| 503 [mainContainer_ updateSaveInChrome]; | |
| 504 } | 503 } |
| 505 | 504 |
| 506 - (void)fillSection:(autofill::DialogSection)section | 505 - (void)fillSection:(autofill::DialogSection)section |
| 507 forInput:(const autofill::DetailInput&)input { | 506 forInput:(const autofill::DetailInput&)input { |
| 508 [[mainContainer_ sectionForId:section] fillForInput:input]; | 507 [[mainContainer_ sectionForId:section] fillForInput:input]; |
| 509 [mainContainer_ updateSaveInChrome]; | |
| 510 } | 508 } |
| 511 | 509 |
| 512 - (content::NavigationController*)showSignIn { | 510 - (content::NavigationController*)showSignIn { |
| 513 [signInContainer_ loadSignInPage]; | 511 [signInContainer_ loadSignInPage]; |
| 514 [[mainContainer_ view] setHidden:YES]; | 512 [[mainContainer_ view] setHidden:YES]; |
| 515 [[signInContainer_ view] setHidden:NO]; | 513 [[signInContainer_ view] setHidden:NO]; |
| 516 [self requestRelayout]; | 514 [self requestRelayout]; |
| 517 | 515 |
| 518 return [signInContainer_ navigationController]; | 516 return [signInContainer_ navigationController]; |
| 519 } | 517 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 } | 555 } |
| 558 | 556 |
| 559 - (void)activateFieldForInput:(const autofill::DetailInput&)input { | 557 - (void)activateFieldForInput:(const autofill::DetailInput&)input { |
| 560 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { | 558 for (size_t i = autofill::SECTION_MIN; i <= autofill::SECTION_MAX; ++i) { |
| 561 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); | 559 autofill::DialogSection section = static_cast<autofill::DialogSection>(i); |
| 562 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; | 560 [[mainContainer_ sectionForId:section] activateFieldForInput:input]; |
| 563 } | 561 } |
| 564 } | 562 } |
| 565 | 563 |
| 566 @end | 564 @end |
| OLD | NEW |