Reimplement titlebar autohiding to be compatible with chromium webview.

Patch Set 4: Fix code formatting

Change-Id: I4de873f7c089d4f7dede944d05f48d03000f3d99
Merge remote-tracking branch 'cm/cm-11.0' into wszf