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

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

Issue 127153004: Change AutofillDialogControllerImpl::input_showing_popup_ -> popup_input_type_ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 [[header_ view] setHidden:![[overlayController_ view] isHidden]]; 391 [[header_ view] setHidden:![[overlayController_ view] isHidden]];
392 [self updateMainContainerVisibility]; 392 [self updateMainContainerVisibility];
393 } 393 }
394 394
395 - (void)updateSection:(autofill::DialogSection)section { 395 - (void)updateSection:(autofill::DialogSection)section {
396 [[mainContainer_ sectionForId:section] update]; 396 [[mainContainer_ sectionForId:section] update];
397 [mainContainer_ updateSaveInChrome]; 397 [mainContainer_ updateSaveInChrome];
398 } 398 }
399 399
400 - (void)fillSection:(autofill::DialogSection)section 400 - (void)fillSection:(autofill::DialogSection)section
401 forInput:(const autofill::DetailInput&)input { 401 forType:(autofill::ServerFieldType)type {
402 [[mainContainer_ sectionForId:section] fillForInput:input]; 402 [[mainContainer_ sectionForId:section] fillForType:type];
403 [mainContainer_ updateSaveInChrome]; 403 [mainContainer_ updateSaveInChrome];
404 } 404 }
405 405
406 - (void)updateForErrors { 406 - (void)updateForErrors {
407 [mainContainer_ validate]; 407 [mainContainer_ validate];
408 } 408 }
409 409
410 - (content::NavigationController*)showSignIn { 410 - (content::NavigationController*)showSignIn {
411 [self updateSignInSizeConstraints]; 411 [self updateSignInSizeConstraints];
412 // Ensure |signInContainer_| is set to the same size as |mainContainer_|, to 412 // Ensure |signInContainer_| is set to the same size as |mainContainer_|, to
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 488
489 - (content::WebContents*)getSignInWebContents { 489 - (content::WebContents*)getSignInWebContents {
490 return [signInContainer_ webContents]; 490 return [signInContainer_ webContents];
491 } 491 }
492 492
493 - (BOOL)isShowingOverlay { 493 - (BOOL)isShowingOverlay {
494 return ![[overlayController_ view] isHidden]; 494 return ![[overlayController_ view] isHidden];
495 } 495 }
496 496
497 @end 497 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698