Theory of anomalous quantum Hall effects in graphene