|
Move infobar constants and the code that uses them from components/ to chrome/.
Both the infobar and the infobar container were making use of various infobar
constants that were declared in components/ but (usually) defined in chrome/.
This was a symptom of having put code in the component that really probably
belonged in the embedder.
This CL hoists the relevant logic to a new cross-platform
InfoBarContainerDelegate class defined on the chrome side, which implements some
of the methods of InfoBarContainer::Delegate. Platforms then subclass this to
implement the remaining, platform-specific bits.
This means that the constants in question now live solely in chrome/, avoiding a
bunch of link-time nastiness when trying to build the components code
separately.
BUG= 382924
TEST=none
TBR=finnur
Committed: https://crrev.com/07622896891ccc5e8279be55bae52c6323f025ff
Cr-Commit-Position: refs/heads/master@{#308046}
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+271 lines, -198 lines) |
Patch |
 |
M |
chrome/browser/extensions/extension_infobar_delegate.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.mm
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/infobars/infobar_utilities.mm
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/infobar_container_delegate.h
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/ui/infobar_container_delegate.cc
|
View
|
1
2
3
|
1 chunk |
+85 lines, -0 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/ui/views/frame/browser_view.h
|
View
|
|
4 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/browser_view.cc
|
View
|
|
3 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/infobars/extension_infobar.cc
|
View
|
|
2 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/infobars/infobar_background.cc
|
View
|
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/infobars/infobar_view.cc
|
View
|
|
5 chunks |
+10 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser_ui.gypi
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/infobars.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/infobars/core/BUILD.gn
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/infobars/core/infobar.h
|
View
|
|
2 chunks |
+4 lines, -13 lines |
0 comments
|
Download
|
 |
M |
components/infobars/core/infobar.cc
|
View
|
1
|
4 chunks |
+14 lines, -31 lines |
0 comments
|
Download
|
 |
D |
components/infobars/core/infobar_android.cc
|
View
|
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
components/infobars/core/infobar_container.h
|
View
|
|
4 chunks |
+31 lines, -19 lines |
0 comments
|
Download
|
 |
M |
components/infobars/core/infobar_container.cc
|
View
|
|
7 chunks |
+32 lines, -54 lines |
0 comments
|
Download
|
 |
M |
components/infobars/test/infobar_test.cc
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
Total messages: 28 (7 generated)
|