| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 names_.clear(); | 625 names_.clear(); |
| 623 subtexts_.clear(); | 626 subtexts_.clear(); |
| 624 icons_.clear(); | 627 icons_.clear(); |
| 625 identifiers_.clear(); | 628 identifiers_.clear(); |
| 626 full_names_.clear(); | 629 full_names_.clear(); |
| 627 | 630 |
| 628 selected_line_ = kNoSelection; | 631 selected_line_ = kNoSelection; |
| 629 } | 632 } |
| 630 | 633 |
| 631 } // namespace autofill | 634 } // namespace autofill |
| OLD | NEW |