Allergan has acquired an American ophthalmic drug company, Oculex Pharmaceuticals, for €230 million.