[Mac] Implement the Animated App Menu Icon

Desktop / Chromium - spqchan [chromium.org] - 16 June 2017 17:12 EDT

- Use the new animated icon for the App Menu- The icon is used when the "new-app-menu-icon" flag is enabled.- The animation should be triggered when:- A new window/tab is created- The app menu is opened

- To use animated .icon files in Cocoa, AnimatedIcon is create to control the animation and draw the icon.

Bug: 704786 Change-Id: Idb43507b4a278b2115f8d46f8172dee61721c68d Reviewed-on: https://chromium-review.googlesource.com/530030

da58dc6 [Mac] Implement the Animated App Menu Icon
chrome/browser/ui/BUILD.gn | 2 +
chrome/browser/ui/cocoa/animated_icon.h | 59 ++++++++++++++++
chrome/browser/ui/cocoa/animated_icon.mm | 43 ++++++++++++
.../ui/cocoa/app_menu/app_menu_controller.mm | 8 +++
.../browser/ui/cocoa/browser_window_controller.mm | 7 ++
.../browser/ui/cocoa/toolbar/app_toolbar_button.h | 7 ++
.../browser/ui/cocoa/toolbar/app_toolbar_button.mm | 82 ++++++++++++++++++++--
7 files changed, 202 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share