Add methods for theme compatibility mode.

Change-Id: I22554cd56fd1142516c00ab46549088b3eff6f4f