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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 15979002: Making credit card number un-editable in Wallet mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Hides |popup_controller_|'s popup view, if it exists. 391 // Hides |popup_controller_|'s popup view, if it exists.
392 void HidePopup(); 392 void HidePopup();
393 393
394 // Whether the user has chosen to enter all new data in |section|. This 394 // Whether the user has chosen to enter all new data in |section|. This
395 // happens via choosing "Add a new X..." from a section's suggestion menu. 395 // happens via choosing "Add a new X..." from a section's suggestion menu.
396 bool IsManuallyEditingSection(DialogSection section) const; 396 bool IsManuallyEditingSection(DialogSection section) const;
397 397
398 // Whether the user has chosen to enter all new data in at least one section. 398 // Whether the user has chosen to enter all new data in at least one section.
399 bool IsManuallyEditingAnySection() const; 399 bool IsManuallyEditingAnySection() const;
400 400
401 // Whether a particular DetailInput in |section| should be edited or not.
402 bool InputIsEditable(const DetailInput& input, DialogSection section) const;
403
401 // Whether all of the input fields currently showing in the dialog have valid 404 // Whether all of the input fields currently showing in the dialog have valid
402 // contents. 405 // contents.
403 bool AllSectionsAreValid() const; 406 bool AllSectionsAreValid() const;
404 407
405 // Whether all of the input fields currently showing in the given |section| of 408 // Whether all of the input fields currently showing in the given |section| of
406 // the dialog have valid contents. 409 // the dialog have valid contents.
407 bool SectionIsValid(DialogSection section) const; 410 bool SectionIsValid(DialogSection section) const;
408 411
409 // Returns true if |key| refers to a suggestion, as opposed to some control 412 // Returns true if |key| refers to a suggestion, as opposed to some control
410 // menu item. 413 // menu item.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 627
625 // Whether the latency to display to the UI was logged to UMA yet. 628 // Whether the latency to display to the UI was logged to UMA yet.
626 bool was_ui_latency_logged_; 629 bool was_ui_latency_logged_;
627 630
628 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 631 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
629 }; 632 };
630 633
631 } // namespace autofill 634 } // namespace autofill
632 635
633 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 636 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698