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

Issue 23338005: Mac InfoBar: Use cross platform infobar classes (Closed)

Created:
7 years, 4 months ago by sail
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Mac InfoBar: Use cross platform infobar classes Currently the Mac code has a dummy InfoBar implementation that it unused. This code replaces that with the cross platform implementation. Using the cross platform implementation means: - animation is now driven by the cross platform code - layout is now controlled by InfoBarContainer - InfoBarDelegate is now owned by InfoBar BUG=62154 TEST= TBR=thakis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219956

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 21

Patch Set 6 : #

Patch Set 7 : fix test #

Total comments: 21

Patch Set 8 : #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -857 lines) Patch
D chrome/app/nibs/InfoBarContainer.xib View 1 chunk +0 lines, -169 lines 0 comments Download
M chrome/browser/infobars/infobar.h View 1 2 3 4 4 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/infobars/infobar.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/infobars/infobar_container.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 4 chunks +4 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm View 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/before_translate_infobar_controller.mm View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller.mm View 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/confirm_infobar_controller_unittest.mm View 1 2 3 4 5 6 7 8 chunks +24 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/extension_infobar_controller.mm View 1 2 3 4 5 6 chunks +19 lines, -32 lines 0 comments Download
D chrome/browser/ui/cocoa/infobars/infobar.h View 1 chunk +0 lines, -57 lines 0 comments Download
A chrome/browser/ui/cocoa/infobars/infobar_cocoa.h View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/infobars/infobar_cocoa.mm View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.h View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/infobars/infobar_container_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.h View 1 2 3 4 5 6 7 3 chunks +27 lines, -76 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 3 4 5 6 7 5 chunks +85 lines, -209 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller_unittest.mm View 1 2 3 4 5 6 7 2 chunks +26 lines, -39 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.h View 6 chunks +13 lines, -31 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 4 11 chunks +25 lines, -127 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_gradient_view.h View 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm View 1 2 3 4 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_utilities.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_base.mm View 3 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/chrome_nibs.gyp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/chrome_nibs.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
sail
7 years, 4 months ago (2013-08-24 00:10:12 UTC) #1
Peter Kasting
One offhand note (don't have time to review tonight): InfoBarDelegate shouldn't be owned by InfoBar ...
7 years, 4 months ago (2013-08-24 03:00:17 UTC) #2
Peter Kasting
https://codereview.chromium.org/23338005/diff/1/chrome/browser/infobars/infobar.h File chrome/browser/infobars/infobar.h (right): https://codereview.chromium.org/23338005/diff/1/chrome/browser/infobars/infobar.h#newcode69 chrome/browser/infobars/infobar.h:69: void RemoveSelf(); One other note. Any way to avoid ...
7 years, 4 months ago (2013-08-24 03:03:39 UTC) #3
sail
On 2013/08/24 03:00:17, Peter Kasting wrote: > One offhand note (don't have time to review ...
7 years, 4 months ago (2013-08-24 20:54:32 UTC) #4
sail
https://codereview.chromium.org/23338005/diff/1/chrome/browser/infobars/infobar.h File chrome/browser/infobars/infobar.h (right): https://codereview.chromium.org/23338005/diff/1/chrome/browser/infobars/infobar.h#newcode69 chrome/browser/infobars/infobar.h:69: void RemoveSelf(); On 2013/08/24 03:03:39, Peter Kasting wrote: > ...
7 years, 4 months ago (2013-08-25 18:31:07 UTC) #5
Robert Sesek
Seems pretty clean - nice! https://codereview.chromium.org/23338005/diff/24001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/23338005/diff/24001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode501 chrome/browser/ui/cocoa/browser_window_controller.h:501: - (void)layoutInfoBar; Document https://codereview.chromium.org/23338005/diff/24001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode501 ...
7 years, 3 months ago (2013-08-26 14:06:55 UTC) #6
sail
https://codereview.chromium.org/23338005/diff/24001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/23338005/diff/24001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode501 chrome/browser/ui/cocoa/browser_window_controller.h:501: - (void)layoutInfoBar; On 2013/08/26 14:06:56, rsesek wrote: > This ...
7 years, 3 months ago (2013-08-26 18:32:23 UTC) #7
Peter Kasting
On 2013/08/24 20:54:32, sail wrote: > On 2013/08/24 03:00:17, Peter Kasting wrote: > > One ...
7 years, 3 months ago (2013-08-26 18:38:04 UTC) #8
Peter Kasting
So why have a lightweight InfoBarCocoa wrapper class around InfoBarController, instead of just making InfoBarCocoa ...
7 years, 3 months ago (2013-08-26 18:51:24 UTC) #9
Robert Sesek
On 2013/08/26 18:51:24, Peter Kasting wrote: > So why have a lightweight InfoBarCocoa wrapper class ...
7 years, 3 months ago (2013-08-26 18:52:17 UTC) #10
Peter Kasting
On 2013/08/26 18:52:17, rsesek wrote: > On 2013/08/26 18:51:24, Peter Kasting wrote: > > So ...
7 years, 3 months ago (2013-08-26 19:05:12 UTC) #11
Robert Sesek
https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode502 chrome/browser/ui/cocoa/browser_window_controller.h:502: - (void)layoutInfoBar; naming: layoutInfoBarS? https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm File chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm (right): https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm#newcode61 ...
7 years, 3 months ago (2013-08-26 19:35:02 UTC) #12
Peter Kasting
https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm File chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm (right): https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm#newcode61 chrome/browser/ui/cocoa/infobars/alternate_nav_infobar_controller.mm:61: scoped_ptr<InfoBarCocoa> infobar(new InfoBarCocoa(owner, this)); On 2013/08/26 19:35:02, rsesek wrote: ...
7 years, 3 months ago (2013-08-26 19:38:43 UTC) #13
sail
https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/23338005/diff/46001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode502 chrome/browser/ui/cocoa/browser_window_controller.h:502: - (void)layoutInfoBar; On 2013/08/26 19:35:02, rsesek wrote: > naming: ...
7 years, 3 months ago (2013-08-26 21:58:43 UTC) #14
Robert Sesek
LGTM https://codereview.chromium.org/23338005/diff/60001/chrome/chrome_nibs.gypi File chrome/chrome_nibs.gypi (right): https://codereview.chromium.org/23338005/diff/60001/chrome/chrome_nibs.gypi#newcode1 chrome/chrome_nibs.gypi:1: # Copyright (c) 2012 The Chromium Authors. All ...
7 years, 3 months ago (2013-08-26 22:21:47 UTC) #15
sail
https://codereview.chromium.org/23338005/diff/60001/chrome/chrome_nibs.gypi File chrome/chrome_nibs.gypi (right): https://codereview.chromium.org/23338005/diff/60001/chrome/chrome_nibs.gypi#newcode1 chrome/chrome_nibs.gypi:1: # Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 3 months ago (2013-08-26 22:56:30 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/23338005/65001
7 years, 3 months ago (2013-08-27 14:42:27 UTC) #17
sail
TBRing thakis for *gyp* changes.
7 years, 3 months ago (2013-08-28 00:06:56 UTC) #18
Nico
gyp *lgtm*
7 years, 3 months ago (2013-08-28 00:08:48 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/23338005/65001
7 years, 3 months ago (2013-08-28 00:14:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/23338005/65001
7 years, 3 months ago (2013-08-28 00:58:22 UTC) #21
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-08-28 03:00:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/23338005/65001
7 years, 3 months ago (2013-08-28 05:12:11 UTC) #23
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 07:52:46 UTC) #24
Message was sent while issue was closed.
Change committed as 219956

Powered by Google App Engine
This is Rietveld 408576698