We can't know everything about the diets of the extinct dinosaurs, but based on food-chain energetics we can expect that:
a) the largest dinosaurs probably ate meat (other dinosaurs, etc.)
b) there were probably more individual herbivorous dinosaurs than carnivorous dinosaurs
c) many dinosaurs probably had symbioses with chemosynthetic autotrophs
d) most dinosaurs probably had very short digestive tracts