From what I understood Google used WTL as an abstraction layer for the GUI. Meaning in order to create a button they used the WTL CButton (which is a wrapper for a Windows button control).
So to create a Mac control button they'll add a pre processor directive that will call a different code that will generate a Mac button.
Nothing wrong with that...