Combining cards instead of merging.
When there are several cards with same Chrome ID, we now not simply choose the one with the highest priority and call it a day.

Instead, for every moment of time, we show the card with the highest priority, chosen from ones that should be visible at this moment.

Also, added Closure annotations to enable static type analysis.

BUG=164227

Review URL: https://codereview.chromium.org/107033002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239389 0039d316-1c4b-4281-b951-d872f2087c98
5 files changed