Bug 937485: [WebIcc] use Webidl enum for cardState. r=echen, r=smaug