Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1889)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm

Issue 100203003: [rAC, OSX] Allow controller to validate data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698