Create a cross-platform helper class for badging the wrench menu.
Adds WrenchMenuBadgeController which is responsible for notifying toolbar UI implementations (i.e. views and cocoa) about how they should be badged. Logic is moved from Cocoa and Views toolbar implementations and from wrench_icon_painter.cc to this new class. This refactor allows to easily expand the functionality of this class to add new sources of badging without needing to make the same changes to several platform-specific implementations. No functional changes. BUG=394855 Review URL: https://codereview.chromium.org/395193003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284084 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment