material throbber, take 2
commit90104a67209d6a6a9e01845335402a37303fceaf
authorestade <estade@chromium.org>
Mon, 27 Apr 2015 19:49:53 +0000 (27 12:49 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 19:50:53 +0000 (27 19:50 +0000)
tree2cbb12f7563dc3ec440d5de0d8d11545a2cc3972
parent016a5fdb25122fdd84afa9e12678ae7d209e567d
material throbber, take 2

Due to a misunderstanding on my part, the initial implementation represented the "waiting" state, which is used while waiting for a network response in a Chrome tab. Most throbbers should use the "normal"/"spinning" state. This ports the CSS animations in MD_spinner_blue.svg to skia commands, and uses it in the card unmasking dialog.

After some investigation, I've realized that very few places in Chrome actually use the Throbber class. Tabs, for example, draw directly onto a canvas. So the next step will be to refactor this functionality into a ThrobberPainter class so tabs can use it. The reason I am not already doing this is I want to verify with the designers that this version looks good before I work on bringing it to more of Chrome.

BUG=259556, 473342

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

Cr-Commit-Position: refs/heads/master@{#327105}
ui/views/controls/throbber.cc
ui/views/controls/throbber.h