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

Issue 395193003: Create a cross-platform helper class for badging the wrench menu. (Closed)

Created:
6 years, 5 months ago by Alexei Svitkine (slow)
Modified:
6 years, 5 months ago
Reviewers:
Finnur, sky
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284084

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -207 lines) Patch
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm View 7 chunks +26 lines, -48 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_icon_painter.h View 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_icon_painter.cc View 2 chunks +2 lines, -41 lines 0 comments Download
A chrome/browser/ui/toolbar/wrench_menu_badge_controller.h View 1 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/ui/toolbar/wrench_menu_badge_controller.cc View 1 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 5 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 9 chunks +33 lines, -90 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Alexei Svitkine (slow)
finnur: overall review sky: toolbar_view.cc and owners review
6 years, 5 months ago (2014-07-17 19:26:09 UTC) #1
sky
LGTM https://codereview.chromium.org/395193003/diff/80001/chrome/browser/ui/toolbar/wrench_menu_badge_controller.h File chrome/browser/ui/toolbar/wrench_menu_badge_controller.h (right): https://codereview.chromium.org/395193003/diff/80001/chrome/browser/ui/toolbar/wrench_menu_badge_controller.h#newcode21 chrome/browser/ui/toolbar/wrench_menu_badge_controller.h:21: enum BadgeType { nit: use enum names as ...
6 years, 5 months ago (2014-07-17 19:54:28 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/395193003/diff/80001/chrome/browser/ui/toolbar/wrench_menu_badge_controller.h File chrome/browser/ui/toolbar/wrench_menu_badge_controller.h (right): https://codereview.chromium.org/395193003/diff/80001/chrome/browser/ui/toolbar/wrench_menu_badge_controller.h#newcode21 chrome/browser/ui/toolbar/wrench_menu_badge_controller.h:21: enum BadgeType { On 2014/07/17 19:54:28, sky wrote: > ...
6 years, 5 months ago (2014-07-17 21:35:29 UTC) #3
Finnur
Neat. LGTM
6 years, 5 months ago (2014-07-18 11:14:17 UTC) #4
Alexei Svitkine (slow)
The CQ bit was checked by asvitkine@chromium.org
6 years, 5 months ago (2014-07-18 12:38:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/395193003/100001
6 years, 5 months ago (2014-07-18 12:39:17 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 14:02:05 UTC) #7
Message was sent while issue was closed.
Change committed as 284084

Powered by Google App Engine
This is Rietveld 408576698