|
Mac: Make it easier for views to correctly draw with a theme.
Views that draw using the window's theme need to redraw when the theme
changed and when the window's active state changed.
Create a protocol ThemedWindowDrawing that views can adopt and easily
update in response to theme and active state changes.
Reduce inefficient use of cr_recursivelySetNeedsDisplay to minimize the
amount of redraw we do.
TabView, BookmarkButton, DownloadItemButton, and
DownloadShowAllButton were previously relying on BackgroundGradientView
calling cr_recursivelySetNeedsDisplay. Update them to adopt the new
protocol.
BUG= 453996
Committed: https://crrev.com/7463e29b710429f78383a36adc1175169fa40188
Cr-Commit-Position: refs/heads/master@{#314446}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+144 lines, -62 lines) |
Patch |
 |
M |
chrome/browser/ui/cocoa/background_gradient_view.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/background_gradient_view.mm
|
View
|
|
2 chunks |
+13 lines, -32 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_button.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller.mm
|
View
|
|
2 chunks |
+17 lines, -15 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_item_button.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_item_button.mm
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_show_all_button.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/download/download_show_all_button.mm
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/floating_bar_backing_view.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/floating_bar_backing_view.mm
|
View
|
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tabs/tab_strip_view.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
|
View
|
|
3 chunks |
+13 lines, -3 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tabs/tab_view.h
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tabs/tab_view.mm
|
View
|
|
3 chunks |
+13 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/themed_window.h
|
View
|
|
2 chunks |
+13 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm
|
View
|
|
2 chunks |
+8 lines, -0 lines |
3 comments
|
Download
|
 |
M |
ui/base/cocoa/nsview_additions.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/base/cocoa/nsview_additions.mm
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 14 (3 generated)
|