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

Issue 2789203003: [Views] App Menu Animated Icon (Closed)

Created:
3 years, 8 months ago by spqchan
Modified:
3 years, 8 months ago
Reviewers:
danakj, msw, Ilya Sherman, sky
CC:
chromium-reviews, tfarina, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Views] App Menu Animated Icon Implementation of the new app menu animated icon. The new icon is set behind the "app-menu-icon" flag. The flag gives us three options: 1) Old Behavior - Shows the old non-animated icon 2) Persistent Opened State - Shows the new icon which animated and stays in an opened state. The animation is only triggered when a new window is created 3) Persistent Closed State - Shows the new icon which animates to an opened state before it animates back to a closed state. The animation is triggered when a new window/tab is created and when the menu is opened. The flag's default option is the "Old Behavior" BUG=704786 Review-Url: https://codereview.chromium.org/2789203003 Cr-Commit-Position: refs/heads/master@{#465267} Committed: https://chromium.googlesource.com/chromium/src/+/064a811986ce8b3bdcb9bd134d4927b9b36fee2a

Patch Set 1 #

Patch Set 2 : Cleaned up #

Total comments: 32

Patch Set 3 : Fixes for msw #

Total comments: 22

Patch Set 4 : Fixes for sky (and rebased) #

Total comments: 5

Patch Set 5 : Fix for danakj #

Patch Set 6 : Added layer #

Total comments: 24

Patch Set 7 : Fix for msw #

Total comments: 6

Patch Set 8 : Fixes for msw #

Patch Set 9 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -23 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/app_menu_icon_controller.cc View 1 2 chunks +2 lines, -10 lines 0 comments Download
A chrome/browser/ui/views/toolbar/app_menu_animation.h View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/toolbar/app_menu_animation.cc View 1 2 3 4 5 6 7 8 1 chunk +196 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 1 2 3 4 5 4 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 5 6 7 8 chunks +83 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 132 (107 generated)
spqchan
PTAL
3 years, 8 months ago (2017-04-08 01:04:28 UTC) #57
spqchan
On 2017/04/08 01:04:28, spqchan wrote: > PTAL ping
3 years, 8 months ago (2017-04-11 17:12:35 UTC) #58
msw
Sorry for the delay, that's a lot of confusing animation code, especially with the different ...
3 years, 8 months ago (2017-04-11 17:34:14 UTC) #59
msw
One more question https://codereview.chromium.org/2789203003/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2789203003/diff/200001/tools/metrics/histograms/histograms.xml#newcode101308 tools/metrics/histograms/histograms.xml:101308: + <int value="950287809" label="global-app-menu"/> Is this ...
3 years, 8 months ago (2017-04-11 17:36:08 UTC) #60
sky
I can't think of anything better in AppMenuAnimation. +dankj in case she has suggestions. https://codereview.chromium.org/2789203003/diff/220001/chrome/browser/ui/views/toolbar/app_menu_animation.cc ...
3 years, 8 months ago (2017-04-11 20:52:01 UTC) #66
danakj
This seems good, but one thing I suggest is to do what "will-change:content" would do ...
3 years, 8 months ago (2017-04-12 14:38:39 UTC) #76
spqchan
Thanks all! I addressed all of your comments > This seems good, but one thing ...
3 years, 8 months ago (2017-04-12 19:42:10 UTC) #79
sky
On Wed, Apr 12, 2017 at 12:42 PM, <spqchan@chromium.org> wrote: > Thanks all! I addressed ...
3 years, 8 months ago (2017-04-12 19:53:25 UTC) #80
spqchan
Thanks for the clarification! I called owner_->SetPaintToLayer(), however I'm not painting the background, I ended ...
3 years, 8 months ago (2017-04-12 20:32:20 UTC) #83
danakj
On Wed, Apr 12, 2017 at 4:32 PM, <spqchan@chromium.org> wrote: > Thanks for the clarification! ...
3 years, 8 months ago (2017-04-12 20:57:36 UTC) #84
sky
On Wed, Apr 12, 2017 at 1:57 PM, <danakj@chromium.org> wrote: > On Wed, Apr 12, ...
3 years, 8 months ago (2017-04-12 22:46:04 UTC) #88
spqchan
On 2017/04/12 22:46:04, sky (OOO) wrote: > On Wed, Apr 12, 2017 at 1:57 PM, ...
3 years, 8 months ago (2017-04-13 00:10:41 UTC) #91
msw
https://codereview.chromium.org/2789203003/diff/320001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2789203003/diff/320001/chrome/browser/about_flags.cc#newcode544 chrome/browser/about_flags.cc:544: const FeatureEntry::Choice kGlobalErrorMenuIconChoices[] = { nit: It's a bit ...
3 years, 8 months ago (2017-04-13 17:23:12 UTC) #92
spqchan
PTAL https://codereview.chromium.org/2789203003/diff/320001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2789203003/diff/320001/chrome/browser/about_flags.cc#newcode544 chrome/browser/about_flags.cc:544: const FeatureEntry::Choice kGlobalErrorMenuIconChoices[] = { On 2017/04/13 17:23:12, ...
3 years, 8 months ago (2017-04-13 22:52:42 UTC) #105
msw
lgtm with minor comments. https://codereview.chromium.org/2789203003/diff/380001/chrome/browser/ui/views/toolbar/app_menu_animation.cc File chrome/browser/ui/views/toolbar/app_menu_animation.cc (right): https://codereview.chromium.org/2789203003/diff/380001/chrome/browser/ui/views/toolbar/app_menu_animation.cc#newcode74 chrome/browser/ui/views/toolbar/app_menu_animation.cc:74: // When the animation is ...
3 years, 8 months ago (2017-04-13 23:05:24 UTC) #108
spqchan
Thanks! https://codereview.chromium.org/2789203003/diff/380001/chrome/browser/ui/views/toolbar/app_menu_animation.cc File chrome/browser/ui/views/toolbar/app_menu_animation.cc (right): https://codereview.chromium.org/2789203003/diff/380001/chrome/browser/ui/views/toolbar/app_menu_animation.cc#newcode74 chrome/browser/ui/views/toolbar/app_menu_animation.cc:74: // When the animation is closing, the the ...
3 years, 8 months ago (2017-04-13 23:48:21 UTC) #109
msw
Please update the CL title and description (not really global error related)
3 years, 8 months ago (2017-04-13 23:49:39 UTC) #113
spqchan
+jwd for histograms.xml owner
3 years, 8 months ago (2017-04-13 23:49:51 UTC) #115
spqchan
On 2017/04/13 23:49:51, spqchan wrote: > +jwd for histograms.xml owner ping on the CL
3 years, 8 months ago (2017-04-15 02:12:10 UTC) #117
spqchan
I forgot today is a holiday in Canada. +isherman for histogram.xml changes
3 years, 8 months ago (2017-04-18 00:44:21 UTC) #123
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-18 06:10:08 UTC) #124
spqchan
On 2017/04/18 06:10:08, Ilya Sherman wrote: > histograms.xml lgtm thanks!
3 years, 8 months ago (2017-04-18 15:23:35 UTC) #125
spqchan
On 2017/04/18 06:10:08, Ilya Sherman wrote: > histograms.xml lgtm thanks!
3 years, 8 months ago (2017-04-18 15:23:37 UTC) #126
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/2789203003/420001
3 years, 8 months ago (2017-04-18 15:24:04 UTC) #129
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 16:46:59 UTC) #132
Message was sent while issue was closed.
Committed patchset #9 (id:420001) as
https://chromium.googlesource.com/chromium/src/+/064a811986ce8b3bdcb9bd134d49...

Powered by Google App Engine
This is Rietveld 408576698