|
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
Total comments: 6
|
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
|
Total messages: 7 (0 generated)
|