From 587b40b6124aea9759b6b90ffb01e72fc2610935 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Fri, 30 Jul 2010 05:35:12 +0000 Subject: AutoFill: Determine credit card type based on the CC number and display the appropriate CC icon. BUG=50080 TEST=none Review URL: http://codereview.chromium.org/3010041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54280 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webkitclient_impl.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'webkit/glue') diff --git a/webkit/glue/webkitclient_impl.cc b/webkit/glue/webkitclient_impl.cc index a904b76..cfc197b 100644 --- a/webkit/glue/webkitclient_impl.cc +++ b/webkit/glue/webkitclient_impl.cc @@ -235,7 +235,6 @@ WebData WebKitClientImpl::loadResource(const char* name) { const char* name; int id; } resources[] = { - { "genericCC", IDR_AUTOFILL_CC_GENERIC }, { "missingImage", IDR_BROKENIMAGE }, { "mediaPause", IDR_MEDIA_PAUSE_BUTTON }, { "mediaPlay", IDR_MEDIA_PLAY_BUTTON }, @@ -255,6 +254,14 @@ WebData WebKitClientImpl::loadResource(const char* name) { { "inputSpeech", IDR_INPUT_SPEECH }, { "inputSpeechRecording", IDR_INPUT_SPEECH_RECORDING }, { "inputSpeechWaiting", IDR_INPUT_SPEECH_WAITING }, + { "americanExpressCC", IDR_AUTOFILL_CC_AMEX }, + { "dinersCC", IDR_AUTOFILL_CC_DINERS }, + { "discoverCC", IDR_AUTOFILL_CC_DISCOVER }, + { "genericCC", IDR_AUTOFILL_CC_GENERIC }, + { "jcbCC", IDR_AUTOFILL_CC_JCB }, + { "masterCardCC", IDR_AUTOFILL_CC_MASTERCARD }, + { "soloCC", IDR_AUTOFILL_CC_SOLO }, + { "visaCC", IDR_AUTOFILL_CC_VISA }, #if defined(OS_POSIX) && !defined(OS_MACOSX) // TODO(port): rename these to "skia" instead of "Linux". { "linuxCheckboxDisabledIndeterminate", -- cgit v1.1