Generalized complex spherical harmonics, frame functions, and Gleason theorem