dock:: add smart hide.

tower: https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/d85d65e38fc14bcc848b794a74e09ab1/

Change-Id: Ia010ff7f86c3f65954bd1172b5a6e9322b99b13b