What does it mean if a guy rests his head on yours?

I was at the movies with a guy friend and the rest of our friend group, and I laid my head on his shoulder. He rested his head against mine when I did that. Later, I rested my head on his chest, and he seemed to be okay with it, but he wrapped his arm around me for a few seconds, but then moved it. Does any of that mean anything, romantically?
What does it mean if a guy rests his head on yours?
Post Opinion