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

Issue 7006010: Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. ... (Closed)

Created:
9 years, 6 months ago by Peter Kasting
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Avi (use Gerrit), jam, Erik does not do reviews, Paweł Hajdan Jr., kkania, joi+watch-content_chromium.org, Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Change InfoBar-related notifications to be sourced from a TabContentsWrapper, not a TabContents. Also change the notifications' Details to be more like what they will ultimately become once TCW owns the InfoBars, by adding a bool to the REMOVED notification for animation state, and changing the "add"-related args from InfoBarDelegate* to InfoBar*. (I can't yet change the removed infobar delegate args similarly because TabContentsWrapper current has no way to map back from an InfoBarDelegate* to a corresponding Infobar*.) BUG=62154 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87696

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -125 lines) Patch
M chrome/browser/automation/automation_provider_observers.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/automation/automation_provider_observers.cc View 1 2 3 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/infobar.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/infobar_container.cc View 1 2 3 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_ssl_helper.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_infobar_controller.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar.h View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.h View 1 2 3 4 5 6 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 3 4 5 6 5 chunks +32 lines, -22 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller_unittest.mm View 1 2 3 4 5 2 chunks +24 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/translate/translate_infobar_base.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_container_gtk.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc View 1 2 3 4 chunks +26 lines, -17 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 3 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.cc View 1 2 3 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/notification_type.h View 1 2 3 1 chunk +12 lines, -13 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Kasting
rohitrao: Cocoa bits erg: Rest
9 years, 6 months ago (2011-05-31 21:47:16 UTC) #1
rohitrao (ping after 24h)
On 2011/05/31 21:47:16, Peter Kasting wrote: > rohitrao: Cocoa bits > erg: Rest The memory ...
9 years, 6 months ago (2011-05-31 22:04:24 UTC) #2
Elliot Glaysher
On 2011/05/31 21:47:16, Peter Kasting wrote: > rohitrao: Cocoa bits > erg: Rest LGTM
9 years, 6 months ago (2011-06-01 00:50:11 UTC) #3
Peter Kasting
On 2011/05/31 22:04:24, rohitrao wrote: > The memory management seems a little wonky, because there ...
9 years, 6 months ago (2011-06-01 20:46:02 UTC) #4
rohitrao (ping after 24h)
Ok, didn't realize this was just transition code. There are probably some cocoa infobar unittests ...
9 years, 6 months ago (2011-06-01 20:58:41 UTC) #5
Peter Kasting
Rohit, if you wanted another look, this snapshot should hopefully address the previous issues.
9 years, 6 months ago (2011-06-01 22:42:45 UTC) #6
rohitrao (ping after 24h)
LGTM
9 years, 6 months ago (2011-06-02 15:20:59 UTC) #7
Peter Kasting
On 2011/06/01 20:46:02, Peter Kasting wrote: > On 2011/05/31 22:04:24, rohitrao wrote: > > The ...
9 years, 6 months ago (2011-06-02 18:33:56 UTC) #8
rohitrao (ping after 24h)
LGTM with a couple style fixes. Agreed on the gruesomeness, but ok since it's all ...
9 years, 6 months ago (2011-06-02 18:58:25 UTC) #9
Ben Goodger (Google)
9 years, 6 months ago (2011-06-02 21:26:57 UTC) #10
Owner LGTM.

Powered by Google App Engine
This is Rietveld 408576698