|
[Mac] Refactor bookmark pulsing into BookmarkBubbleObserverCocoa.
This moves c/b/ui/views/bookmarks/bookmark_bubble_view_observer.h to
c/b/ui/bookmarks/bookmark_bubble_observer.h since there was nothing
Views-specific about it. We can now use it with the Cocoa
BookmarkBubbleController.
Benefits:
- Consumers of the platform-independent code in chrome/browser/ui/bookmarks
become more consistent.
- Further decoupling of the bookmark bubble from the browser window
(e.g. allows the browser window to not care whether it shows a Cocoa
bubble or a Views bubble).
It also allows the pair of notifications (NSWindowWillCloseNotification
on the bubble window and kPulseBookmarkButtonNotification) to be
consolidated into an observer.
BookmarkBubbleObserverCocoa encapsulates locking toolbar visibility and
pulsing the currently edited bookmark during the bubble's lifetime.
This allows moving the logic out of BookmarkBubbleController.
Logic to pulse the bookmark now resides entirely in
BookmarkBarController and can be better tested.
This also removes kPulseBookmarkButtonNotification, which was only used
by BookmarkBubbleController to inform BookmarkBarController to pulse a
button in the bar.
BUG= 524320
Committed: https://crrev.com/5c23020388bcf81ea3b69d70bdd879671519231b
Cr-Commit-Position: refs/heads/master@{#345716}
Total comments: 28
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+299 lines, -270 lines) |
Patch |
 |
A |
chrome/browser/ui/bookmarks/bookmark_bubble_observer.h
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h
|
View
|
|
3 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm
|
View
|
1
2
3
|
5 chunks |
+55 lines, -38 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm
|
View
|
|
1 chunk |
+31 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h
|
View
|
1
2
|
4 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm
|
View
|
1
2
|
10 chunks |
+18 lines, -61 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller_unittest.mm
|
View
|
1
2
3
|
6 chunks |
+29 lines, -39 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_observer_cocoa.h
|
View
|
1
2
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_observer_cocoa.mm
|
View
|
1
2
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_button.h
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
|
View
|
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h
|
View
|
1
2
3
|
2 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.mm
|
View
|
1
2
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa_unittest.mm
|
View
|
1
2
3
|
2 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.mm
|
View
|
1
2
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller.h
|
View
|
1
2
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller.mm
|
View
|
1
2
|
2 chunks |
+14 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bar_view.h
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
View
|
|
4 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
|
View
|
|
4 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/ui/views/bookmarks/bookmark_bubble_view_observer.h
|
View
|
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 15 (4 generated)
|