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

Issue 6989001: Misc. infobar stuff: (Closed)

Created:
9 years, 7 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, GeorgeY, Avi (use Gerrit), Erik does not do reviews, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., Ilya Sherman, dhollowa
Visibility:
Public.

Description

Misc. infobar stuff: * Move the cross-platform parts of InfoBar and InfoBarContainer to chrome/browser/tab_contents (but place them under a TOOLKIT_VIEWS #ifdef until other platforms are ported). * Plumb the "owning" TabContentsWrapper* through the infobar creation APIs. Ultimately the InfoBar will use this (when TabContents actually starts owning InfoBar*s), but for now it just stores it as an unused member. * A few random other small changes. BUG=62154 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86450

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -781 lines) Patch
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 chunks +69 lines, -76 lines 0 comments Download
M chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_infobar_delegate.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/external_tab_container_win.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/confirm_infobar_delegate.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
A + chrome/browser/tab_contents/infobar.h View 1 2 5 chunks +6 lines, -4 lines 0 comments Download
A + chrome/browser/tab_contents/infobar.cc View 1 2 5 chunks +13 lines, -8 lines 0 comments Download
A + chrome/browser/tab_contents/infobar_container.h View 1 2 3 7 chunks +14 lines, -14 lines 0 comments Download
A + chrome/browser/tab_contents/infobar_container.cc View 1 2 3 7 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/tab_contents/infobar_delegate.h View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/link_infobar_delegate.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_infobar_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/translate/translate_infobar_base.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/translate/translate_infobar_unittest.mm View 1 2 3 4 4 chunks +8 lines, -10 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/link_infobar_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
D chrome/browser/ui/views/infobars/infobar.h View 1 2 1 chunk +0 lines, -115 lines 0 comments Download
D chrome/browser/ui/views/infobars/infobar.cc View 1 2 1 chunk +0 lines, -143 lines 0 comments Download
D chrome/browser/ui/views/infobars/infobar_container.h View 1 2 1 chunk +0 lines, -136 lines 0 comments Download
D chrome/browser/ui/views/infobars/infobar_container.cc View 1 2 1 chunk +0 lines, -198 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_container_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/link_infobar.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/link_infobar.cc View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.cc View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_message_infobar.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/translate_message_infobar.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Kasting
9 years, 7 months ago (2011-05-09 22:33:50 UTC) #1
sky
LGTM http://codereview.chromium.org/6989001/diff/1/chrome/browser/autofill/autofill_metrics_unittest.cc File chrome/browser/autofill/autofill_metrics_unittest.cc (right): http://codereview.chromium.org/6989001/diff/1/chrome/browser/autofill/autofill_metrics_unittest.cc#newcode223 chrome/browser/autofill/autofill_metrics_unittest.cc:223: CreditCard* credit_card = new CreditCard(); How about a ...
9 years, 7 months ago (2011-05-09 22:56:39 UTC) #2
Peter Kasting
9 years, 7 months ago (2011-05-09 23:23:33 UTC) #3
Will land once trybots are clean.

http://codereview.chromium.org/6989001/diff/1/chrome/browser/autofill/autofil...
File chrome/browser/autofill/autofill_metrics_unittest.cc (right):

http://codereview.chromium.org/6989001/diff/1/chrome/browser/autofill/autofil...
chrome/browser/autofill/autofill_metrics_unittest.cc:223: CreditCard*
credit_card = new CreditCard();
On 2011/05/09 22:56:39, sky wrote:
> How about a comment about ownership of CreditCard?

Sure.

http://codereview.chromium.org/6989001/diff/1/chrome/browser/tab_contents/inf...
File chrome/browser/tab_contents/infobar.cc (right):

http://codereview.chromium.org/6989001/diff/1/chrome/browser/tab_contents/inf...
chrome/browser/tab_contents/infobar.cc:124: static_cast<int>(bar_target_height_
* animation_->GetCurrentValue());
On 2011/05/09 22:56:39, sky wrote:
> This should use Tween::ValueBetween

Or even better, Animation::CurrentValueBetween().  Changed.

Powered by Google App Engine
This is Rietveld 408576698