Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Issue 2892563004: Use animated vector icon for app menu notification animation. (Closed)

Created:
3 years, 7 months ago by Evan Stade
Modified:
3 years, 6 months ago
Reviewers:
sadrul, Peter Kasting
CC:
chromium-reviews, sadrul, awdf+watch_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, kalyank, spqchan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use animated vector icon for app menu notification animation. 1. Expose IconDescription in vector icon code so when we add or modify parameters we don't have to update the API. TODO: remove the parts of the API that use multiple parameters and replace them all with IconDescription. 2. Add AnimatedIconView, which caches the start and end states and controls animating in between as well. 3. Add an animated version of browser_tools.icon. This was crafted by hand based on the non-animated version and a visual description, but in the future designers should deliver Android vector drawables which will make the process of creating these icons much easier (and perhaps automate-able). TODO: actually craft a 2x version instead of reusing 1x. 4. Apply this all to the app menu. This solves the issue of pixel perfection in the steady state. BUG=718549, 704786 Review-Url: https://codereview.chromium.org/2892563004 Cr-Commit-Position: refs/heads/master@{#476425} Committed: https://chromium.googlesource.com/chromium/src/+/9d068dc8a60aea79f24f02f6a659972936387087

Patch Set 1 #

Patch Set 2 : checkpoint with color transition #

Patch Set 3 : git add #

Total comments: 33

Patch Set 4 : sadrul review #

Patch Set 5 : sadrul review #

Patch Set 6 : gfx_export #

Total comments: 13

Patch Set 7 : pkasting review, sprinkle 'f's to make msvc happy #

Patch Set 8 : rebase #

Patch Set 9 : fix compile, move comment #

Patch Set 10 : EXPORT #

Patch Set 11 : one more f #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -398 lines) Patch
M chrome/app/vector_icons/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/app/vector_icons/browser_tools_animated.icon View 1 2 3 4 5 6 7 8 9 10 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/app/vector_icons/browser_tools_animated.1x.icon View 1 2 3 4 5 6 7 8 9 10 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/app/vector_icons/vector_icons.cc.template View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/ui/toolbar/app_menu_animation.h View 1 2 1 chunk +0 lines, -100 lines 0 comments Download
D chrome/browser/ui/toolbar/app_menu_animation.cc View 1 2 1 chunk +0 lines, -189 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 5 6 7 8 9 7 chunks +23 lines, -35 lines 0 comments Download
M ui/gfx/paint_vector_icon.h View 1 2 3 4 5 3 chunks +26 lines, -1 line 0 comments Download
M ui/gfx/paint_vector_icon.cc View 1 2 3 4 7 chunks +57 lines, -54 lines 0 comments Download
M ui/views/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
A ui/views/controls/animated_icon_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +67 lines, -0 lines 0 comments Download
A ui/views/controls/animated_icon_view.cc View 1 2 3 4 5 6 7 8 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (33 generated)
Evan Stade
Sadrul, ptal. AnimatedIconView is probably a good place to start. Sarah, I will ping you ...
3 years, 7 months ago (2017-05-19 23:59:01 UTC) #3
sadrul
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h File ui/gfx/paint_vector_icon.h (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h#newcode31 ui/gfx/paint_vector_icon.h:31: bool operator<(const IconDescription& other) const; I don't think < ...
3 years, 7 months ago (2017-05-23 18:01:14 UTC) #8
Evan Stade
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h File ui/gfx/paint_vector_icon.h (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h#newcode31 ui/gfx/paint_vector_icon.h:31: bool operator<(const IconDescription& other) const; On 2017/05/23 18:01:14, sadrul ...
3 years, 7 months ago (2017-05-23 23:38:42 UTC) #9
sadrul
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc#newcode530 ui/gfx/paint_vector_icon.cc:530: std::tie(other_icon, other.dip_size, other.color, other.elapsed_time, This is .. comparing pointers? ...
3 years, 7 months ago (2017-05-24 17:35:14 UTC) #14
Evan Stade
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc#newcode530 ui/gfx/paint_vector_icon.cc:530: std::tie(other_icon, other.dip_size, other.color, other.elapsed_time, On 2017/05/24 17:35:13, sadrul wrote: ...
3 years, 7 months ago (2017-05-24 17:47:54 UTC) #15
Evan Stade
On 2017/05/24 17:47:54, Evan Stade wrote: > https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc > File ui/gfx/paint_vector_icon.cc (right): > > https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.cc#newcode530 ...
3 years, 7 months ago (2017-05-25 21:24:29 UTC) #16
sadrul
https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc File ui/views/controls/animated_icon_view.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc#newcode39 ui/views/controls/animated_icon_view.cc:39: views::ImageView::OnPaint(canvas); On 2017/05/24 17:47:53, Evan Stade wrote: > On ...
3 years, 7 months ago (2017-05-26 19:44:47 UTC) #17
sadrul
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h File ui/gfx/paint_vector_icon.h (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h#newcode31 ui/gfx/paint_vector_icon.h:31: bool operator<(const IconDescription& other) const; On 2017/05/24 17:47:53, Evan ...
3 years, 7 months ago (2017-05-26 19:50:27 UTC) #18
Evan Stade
https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h File ui/gfx/paint_vector_icon.h (right): https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h#newcode31 ui/gfx/paint_vector_icon.h:31: bool operator<(const IconDescription& other) const; On 2017/05/26 19:50:27, sadrul ...
3 years, 7 months ago (2017-05-26 20:48:52 UTC) #21
Evan Stade
On 2017/05/26 20:48:52, Evan Stade wrote: > https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h > File ui/gfx/paint_vector_icon.h (right): > > https://codereview.chromium.org/2892563004/diff/40001/ui/gfx/paint_vector_icon.h#newcode31 ...
3 years, 7 months ago (2017-05-26 20:49:36 UTC) #22
Evan Stade
ping
3 years, 6 months ago (2017-05-30 15:59:41 UTC) #25
sadrul
https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc File ui/views/controls/animated_icon_view.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc#newcode39 ui/views/controls/animated_icon_view.cc:39: views::ImageView::OnPaint(canvas); On 2017/05/26 20:48:52, Evan Stade wrote: > On ...
3 years, 6 months ago (2017-05-30 17:06:51 UTC) #26
Evan Stade
https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc File ui/views/controls/animated_icon_view.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc#newcode39 ui/views/controls/animated_icon_view.cc:39: views::ImageView::OnPaint(canvas); On 2017/05/30 17:06:51, sadrul wrote: > On 2017/05/26 ...
3 years, 6 months ago (2017-05-30 18:53:46 UTC) #27
sadrul
lgtm https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc File ui/views/controls/animated_icon_view.cc (right): https://codereview.chromium.org/2892563004/diff/40001/ui/views/controls/animated_icon_view.cc#newcode39 ui/views/controls/animated_icon_view.cc:39: views::ImageView::OnPaint(canvas); On 2017/05/30 18:53:45, Evan Stade wrote: > ...
3 years, 6 months ago (2017-05-30 19:48:33 UTC) #28
Evan Stade
thanks Sadrul. +pkasting for c/b/u/ https://codereview.chromium.org/2892563004/diff/100001/ui/views/controls/animated_icon_view.h File ui/views/controls/animated_icon_view.h (right): https://codereview.chromium.org/2892563004/diff/100001/ui/views/controls/animated_icon_view.h#newcode45 ui/views/controls/animated_icon_view.h:45: bool IsAnimating(); On 2017/05/30 ...
3 years, 6 months ago (2017-05-30 19:52:36 UTC) #30
Peter Kasting
c/b/ui LGTM https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc File chrome/browser/ui/views/toolbar/app_menu_button.cc (right): https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc#newcode191 chrome/browser/ui/views/toolbar/app_menu_button.cc:191: // background. What about just always running ...
3 years, 6 months ago (2017-05-31 02:08:29 UTC) #31
Evan Stade
https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc File chrome/browser/ui/views/toolbar/app_menu_button.cc (right): https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc#newcode191 chrome/browser/ui/views/toolbar/app_menu_button.cc:191: // background. On 2017/05/31 02:08:28, Peter Kasting wrote: > ...
3 years, 6 months ago (2017-05-31 17:08:16 UTC) #38
Peter Kasting
https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc File chrome/browser/ui/views/toolbar/app_menu_button.cc (right): https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.cc#newcode191 chrome/browser/ui/views/toolbar/app_menu_button.cc:191: // background. On 2017/05/31 17:08:16, Evan Stade wrote: > ...
3 years, 6 months ago (2017-05-31 17:24:31 UTC) #41
Evan Stade
https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.h File chrome/browser/ui/views/toolbar/app_menu_button.h (right): https://codereview.chromium.org/2892563004/diff/100001/chrome/browser/ui/views/toolbar/app_menu_button.h#newcode115 chrome/browser/ui/views/toolbar/app_menu_button.h:115: // when there's a need to alert the user. ...
3 years, 6 months ago (2017-05-31 20:19:13 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2892563004/160001
3 years, 6 months ago (2017-05-31 20:19:45 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/440169)
3 years, 6 months ago (2017-05-31 21:01:08 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2892563004/180001
3 years, 6 months ago (2017-06-01 16:48:48 UTC) #50
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/424878)
3 years, 6 months ago (2017-06-01 17:38:54 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2892563004/200001
3 years, 6 months ago (2017-06-01 17:49:39 UTC) #55
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 20:48:21 UTC) #58
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/9d068dc8a60aea79f24f02f6a659...

Powered by Google App Engine
This is Rietveld 408576698