Chamelionic generalized Brans-Dicke cosmology