OLD | NEW |
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 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 }; | 52 }; |
53 | 53 |
54 const DataResource kDataResources[] = { | 54 const DataResource kDataResources[] = { |
55 { "americanExpressCC", IDR_AUTOFILL_CC_AMEX }, | 55 { "americanExpressCC", IDR_AUTOFILL_CC_AMEX }, |
56 { "dinersCC", IDR_AUTOFILL_CC_DINERS }, | 56 { "dinersCC", IDR_AUTOFILL_CC_DINERS }, |
57 { "discoverCC", IDR_AUTOFILL_CC_DISCOVER }, | 57 { "discoverCC", IDR_AUTOFILL_CC_DISCOVER }, |
58 { "genericCC", IDR_AUTOFILL_CC_GENERIC }, | 58 { "genericCC", IDR_AUTOFILL_CC_GENERIC }, |
59 { "jcbCC", IDR_AUTOFILL_CC_JCB }, | 59 { "jcbCC", IDR_AUTOFILL_CC_JCB }, |
60 { "masterCardCC", IDR_AUTOFILL_CC_MASTERCARD }, | 60 { "masterCardCC", IDR_AUTOFILL_CC_MASTERCARD }, |
61 { "visaCC", IDR_AUTOFILL_CC_VISA }, | 61 { "visaCC", IDR_AUTOFILL_CC_VISA }, |
| 62 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 63 { "macContactsIcon", IDR_AUTOFILL_MAC_CONTACTS_ICON }, |
| 64 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
62 }; | 65 }; |
63 | 66 |
64 } // namespace | 67 } // namespace |
65 | 68 |
66 // static | 69 // static |
67 WeakPtr<AutofillPopupControllerImpl> AutofillPopupControllerImpl::GetOrCreate( | 70 WeakPtr<AutofillPopupControllerImpl> AutofillPopupControllerImpl::GetOrCreate( |
68 WeakPtr<AutofillPopupControllerImpl> previous, | 71 WeakPtr<AutofillPopupControllerImpl> previous, |
69 WeakPtr<AutofillPopupDelegate> delegate, | 72 WeakPtr<AutofillPopupDelegate> delegate, |
70 content::WebContents* web_contents, | 73 content::WebContents* web_contents, |
71 gfx::NativeView container_view, | 74 gfx::NativeView container_view, |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 names_.clear(); | 629 names_.clear(); |
627 subtexts_.clear(); | 630 subtexts_.clear(); |
628 icons_.clear(); | 631 icons_.clear(); |
629 identifiers_.clear(); | 632 identifiers_.clear(); |
630 full_names_.clear(); | 633 full_names_.clear(); |
631 | 634 |
632 selected_line_ = kNoSelection; | 635 selected_line_ = kNoSelection; |
633 } | 636 } |
634 | 637 |
635 } // namespace autofill | 638 } // namespace autofill |
OLD | NEW |