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

Issue 14327008: Add InitWidgets() phase for GTK infobars. (Closed)

Created:
7 years, 8 months ago by Peter Kasting
Modified:
7 years, 8 months ago
Reviewers:
Elliot Glaysher
CC:
chromium-reviews, Aaron Boodman, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add InitWidgets() phase for GTK infobars. This unifies the creation of GTK widgets and makes it happen in response to the infobar being shown. Currently, this generally happens at construction. Once the new ownership model lands, infobars will not yet be owned at construction time, and since widget creation includes getting a theme service from the owner, that needs to move out of the construction phase. Incidentally, this also makes the GTK native object creation happen at the same time as the views native object creation, not that that matters much. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194707

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -77 lines) Patch
M chrome/browser/infobars/infobar.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/infobars/infobar_container.h View 1 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/after_translate_infobar_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/alternate_nav_infobar_gtk.cc View 1 chunk +10 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/before_translate_infobar_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/confirm_infobar_gtk.cc View 4 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc View 5 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_container_gtk.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_gtk.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/infobar_gtk.cc View 1 12 chunks +30 lines, -8 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.h View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc View 3 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/after_translate_infobar.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/alternate_nav_infobar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/before_translate_infobar.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/confirm_infobar.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_message_infobar.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Peter Kasting
Second attempt at https://codereview.chromium.org/11775019 . The original patch failed in debug mode (which my tryruns ...
7 years, 8 months ago (2013-04-17 20:57:44 UTC) #1
Elliot Glaysher
On 2013/04/17 20:57:44, Peter Kasting wrote: > Second attempt at https://codereview.chromium.org/11775019 . The original patch ...
7 years, 8 months ago (2013-04-17 21:01:10 UTC) #2
Peter Kasting
On 2013/04/17 21:01:10, Elliot Glaysher wrote: > lgtm. (It looks like the biggest chunk is ...
7 years, 8 months ago (2013-04-17 21:02:42 UTC) #3
Peter Kasting
7 years, 8 months ago (2013-04-17 23:02:40 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r194707 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698