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

Issue 2859903003: [Mac] App Menu Animated Icon (Closed)

Created:
3 years, 7 months ago by spqchan
Modified:
3 years, 7 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] App Menu Animated Icon Implementation of the new app menu animated icon. The new icon is set behind the "new-app-menu-icon" flag. The animation is triggered when a new window/tab is created or when the menu is opened. BUG=704786

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 4

Patch Set 3 : Fixes for rsesek, created a bridge #

Patch Set 4 : Switch to CanvasSkiaPaint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -321 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/menu_button.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/menu_button.mm View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/toolbar/app_toolbar_button.mm View 1 2 3 5 chunks +81 lines, -2 lines 0 comments Download
A + chrome/browser/ui/toolbar/app_menu_animation.h View 1 2 3 6 chunks +20 lines, -9 lines 0 comments Download
A + chrome/browser/ui/toolbar/app_menu_animation.cc View 1 2 3 6 chunks +18 lines, -15 lines 0 comments Download
D chrome/browser/ui/views/toolbar/app_menu_animation.h View 1 2 1 chunk +0 lines, -89 lines 0 comments Download
D chrome/browser/ui/views/toolbar/app_menu_animation.cc View 1 2 1 chunk +0 lines, -186 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.h View 1 2 3 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu_button.cc View 1 2 3 4 chunks +18 lines, -11 lines 0 comments Download

Messages

Total messages: 32 (29 generated)
spqchan
PTAL This is for the new app menu icon. The one we currently have changes ...
3 years, 7 months ago (2017-05-03 21:28:20 UTC) #10
Robert Sesek
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h File chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h (right): https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h#newcode12 chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h:12: #import "base/mac/scoped_nsobject.h" Unused? https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h#newcode25 chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h:25: std::unique_ptr<AppToolbarButtonIcon> app_icon_; naming: appIcon ...
3 years, 7 months ago (2017-05-03 22:44:29 UTC) #13
spqchan
3 years, 7 months ago (2017-05-08 16:41:51 UTC) #32
On 2017/05/03 22:44:29, Robert Sesek wrote:
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> File chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h (right):
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h:12: #import
> "base/mac/scoped_nsobject.h"
> Unused?
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> chrome/browser/ui/cocoa/toolbar/app_toolbar_button.h:25:
> std::unique_ptr<AppToolbarButtonIcon> app_icon_;
> naming: appIcon
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> File chrome/browser/ui/cocoa/toolbar/app_toolbar_button.mm (right):
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> chrome/browser/ui/cocoa/toolbar/app_toolbar_button.mm:122: -
> (void)onTabInsertedInForeground {
> What do you think of this?
> 
> Rename this -maybeStartAnimation and call it directly from
> BrowserWindowController, and have -willShowMenu in this class call it too. It
> seems a little weird to have the button care about tabs being inserted, but I
> can also see why you did it this way.
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> File chrome/browser/ui/cocoa/toolbar/app_toolbar_button_icon.mm (right):
> 
>
https://codereview.chromium.org/2859903003/diff/40001/chrome/browser/ui/cocoa...
> chrome/browser/ui/cocoa/toolbar/app_toolbar_button_icon.mm:1: // Copyright
2017
> The Chromium Authors. All rights reserved.
> Are other platforms going to use the same spec? Should this code be shared (%
> the Cocoa bits)?

Thanks for your help with this! Unfortunately, it looks like I'll have to get
rid of this since estade@ is writing a framework for animated icons that I could
use instead.

Powered by Google App Engine
This is Rietveld 408576698