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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 [[mainContainer_ sectionForId:section] update]; | 361 [[mainContainer_ sectionForId:section] update]; |
362 [mainContainer_ updateSaveInChrome]; | 362 [mainContainer_ updateSaveInChrome]; |
363 } | 363 } |
364 | 364 |
365 - (void)fillSection:(autofill::DialogSection)section | 365 - (void)fillSection:(autofill::DialogSection)section |
366 forInput:(const autofill::DetailInput&)input { | 366 forInput:(const autofill::DetailInput&)input { |
367 [[mainContainer_ sectionForId:section] fillForInput:input]; | 367 [[mainContainer_ sectionForId:section] fillForInput:input]; |
368 [mainContainer_ updateSaveInChrome]; | 368 [mainContainer_ updateSaveInChrome]; |
369 } | 369 } |
370 | 370 |
| 371 - (void)updateForErrors { |
| 372 [mainContainer_ validate]; |
| 373 } |
| 374 |
371 - (content::NavigationController*)showSignIn { | 375 - (content::NavigationController*)showSignIn { |
372 [self updateSignInSizeConstraints]; | 376 [self updateSignInSizeConstraints]; |
373 [signInContainer_ loadSignInPage]; | 377 [signInContainer_ loadSignInPage]; |
374 [[signInContainer_ view] setHidden:NO]; | 378 [[signInContainer_ view] setHidden:NO]; |
375 [self updateMainContainerVisibility]; | 379 [self updateMainContainerVisibility]; |
376 [self requestRelayout]; | 380 [self requestRelayout]; |
377 | 381 |
378 return [signInContainer_ navigationController]; | 382 return [signInContainer_ navigationController]; |
379 } | 383 } |
380 | 384 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 448 |
445 - (content::WebContents*)getSignInWebContents { | 449 - (content::WebContents*)getSignInWebContents { |
446 return [signInContainer_ webContents]; | 450 return [signInContainer_ webContents]; |
447 } | 451 } |
448 | 452 |
449 - (BOOL)isShowingOverlay { | 453 - (BOOL)isShowingOverlay { |
450 return ![[overlayController_ view] isHidden]; | 454 return ![[overlayController_ view] isHidden]; |
451 } | 455 } |
452 | 456 |
453 @end | 457 @end |
OLD | NEW |