Starting from the keto form, the carbonyl oxygen gets protonated by the TsOH, making it a positively charged carbonyl oxygen.
The conjugate base, TsO-, will then deprotonate an alpha hydrogen, making a double bond, and kicking the carbonyl pi bond to the positively charged oxygen (the oxygen will now be neutral).
This creates the enol form, from which it can react.
The enol oxygen will then regain the carbonyl double bond, therefore kicking the enol double bond, making it a nucleophile to attack the Br2 molecule.
The TsO- in the solution will deprotonate the carbonyl oxygen to make it neutral again.