The most common cause for swollen eyeballs in dogs is allergies. It may also be caused by irritation to the eye or some sort of debris that got lodged in the eye. Ingrown lashes may also result in swelling of the eyeball. If you cannot determine the cause, take your dog to the vet immediately.
Swollen eye ball could be several things, from inflammation, to allergic reaction to have something in the dogs eye. Wash his face out with water NO SOAP and see if that does that trick. If not take him to the vet quick.
This is mainly due to Glaucoma, in which pressure builds up in the eyeball. It may lead to damaging the structure of the eye and consequently, cause blindness.
Simple causes can be allergies or they may have an object in their eye. If it is allergies then the vet can give you drops for it. When it is an object flush the eye if it still does not dislodge visit vet. more seriously it could be an infection or more servere terminal eye diseases.