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/android/autofill/autofill_dialog_view_android.h" | 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 // - otherwise, should show the "Edit..." button (as any "normal" items). | 705 // - otherwise, should show the "Edit..." button (as any "normal" items). |
706 } | 706 } |
707 | 707 |
708 return MENU_ITEM_BUTTON_TYPE_EDIT; | 708 return MENU_ITEM_BUTTON_TYPE_EDIT; |
709 } | 709 } |
710 | 710 |
711 // TODO(aruslan): Remove/fix this once http://crbug.com/230685 is closed. | 711 // TODO(aruslan): Remove/fix this once http://crbug.com/230685 is closed. |
712 namespace { | 712 namespace { |
713 | 713 |
714 bool IsCreditCardType(AutofillFieldType type) { | 714 bool IsCreditCardType(AutofillFieldType type) { |
715 return AutofillType(type).group() == AutofillType::CREDIT_CARD; | 715 return AutofillType(type).group() == CREDIT_CARD; |
716 } | 716 } |
717 | 717 |
718 class CollapsedAutofillProfileWrapper : public AutofillProfileWrapper { | 718 class CollapsedAutofillProfileWrapper : public AutofillProfileWrapper { |
719 public: | 719 public: |
720 explicit CollapsedAutofillProfileWrapper(const AutofillProfile* profile) | 720 explicit CollapsedAutofillProfileWrapper(const AutofillProfile* profile) |
721 : AutofillProfileWrapper(profile, 0) { | 721 : AutofillProfileWrapper(profile, 0) { |
722 } | 722 } |
723 virtual ~CollapsedAutofillProfileWrapper() { | 723 virtual ~CollapsedAutofillProfileWrapper() { |
724 } | 724 } |
725 | 725 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 | 856 |
857 if (label.empty()) | 857 if (label.empty()) |
858 return false; | 858 return false; |
859 | 859 |
860 *label_to_set = label; | 860 *label_to_set = label; |
861 *sublabel_to_set = sublabel; | 861 *sublabel_to_set = sublabel; |
862 *icon_to_set = icon; | 862 *icon_to_set = icon; |
863 return true; | 863 return true; |
864 } | 864 } |
865 } // namespace autofill | 865 } // namespace autofill |
OLD | NEW |