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

Issue 7809007: GTK: Clean up the gtk extension infobar implementation. (Closed)

Created:
9 years, 3 months ago by Elliot Glaysher
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Aaron Boodman, Avi (use Gerrit), mihaip+watch_chromium.org, Erik does not do reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

GTK: Clean up the gtk extension infobar implementation. - Add the extension menu button. - Normalize on the gray extension infobar colors (and always force UI elements inside the infobar to be in chrome-theme mode instead of gtk-theme mode). - Fix ownership issues (so GtkContainers didn't still think they owned their widgets even after they had been unparrented). BUG=39916 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99033

Patch Set 1 #

Patch Set 2 : Get rid of stray mark. #

Total comments: 10

Patch Set 3 : Nits #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -22 lines) Patch
M chrome/browser/ui/gtk/custom_button.h View 1 2 2 chunks +8 lines, -0 lines 1 comment Download
M chrome/browser/ui/gtk/custom_button.cc View 1 2 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h View 1 2 1 chunk +49 lines, -1 line 1 comment Download
M chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc View 1 2 6 chunks +123 lines, -18 lines 7 comments Download

Messages

Total messages: 11 (0 generated)
Elliot Glaysher
Want lgtms from both of you finnur: This should handle everything except for setting the ...
9 years, 3 months ago (2011-08-30 23:23:09 UTC) #1
Finnur
Thank you Elliot, really appreciate this! Infobar stuff LGTM. GTK also LGTM, but would be ...
9 years, 3 months ago (2011-08-31 08:06:58 UTC) #2
Elliot Glaysher
http://codereview.chromium.org/7809007/diff/1006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc File chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc (right): http://codereview.chromium.org/7809007/diff/1006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc#newcode66 chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc:66: // icon of the correct size; as is this ...
9 years, 3 months ago (2011-08-31 17:53:08 UTC) #3
Finnur
> Can we get an actual icon pre-scaled correctly? See if Glen has one. I ...
9 years, 3 months ago (2011-08-31 18:32:20 UTC) #4
Glen Murphy
>> Can we get an actual icon pre-scaled correctly? > > See if Glen has ...
9 years, 3 months ago (2011-08-31 18:34:04 UTC) #5
Evan Stade
LGTM http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/custom_button.h File chrome/browser/ui/gtk/custom_button.h (right): http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/custom_button.h#newcode230 chrome/browser/ui/gtk/custom_button.h:230: // HTML extensions. explaining the current use of ...
9 years, 3 months ago (2011-08-31 20:00:12 UTC) #6
Elliot Glaysher
http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc File chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc (right): http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc#newcode50 chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc:50: double* r, double* g, double *b) { On 2011/08/31 ...
9 years, 3 months ago (2011-08-31 20:37:32 UTC) #7
Evan Stade
http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc File chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc (right): http://codereview.chromium.org/7809007/diff/2006/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc#newcode52 chrome/browser/ui/gtk/infobars/extension_infobar_gtk.cc:52: *r = *g = *b = 233.0 / 255.0; ...
9 years, 3 months ago (2011-08-31 20:47:49 UTC) #8
Elliot Glaysher
On 2011/08/31 20:47:49, Evan Stade wrote: > shouldn't we at least match the chrome theme ...
9 years, 3 months ago (2011-08-31 21:06:05 UTC) #9
alcor
What icon is this for? I didn't get the rest of the thread :) On ...
9 years, 3 months ago (2011-09-06 19:17:46 UTC) #10
Elliot Glaysher
9 years, 3 months ago (2011-09-06 19:24:51 UTC) #11
On Tue, Sep 6, 2011 at 12:16 PM, Nicholas Jitkoff <alcor@google.com> wrote:
> What icon is this for? I didn't get the rest of the thread :)

There are new infobars that can be created by extensions. If the
extension doesn't provide a 16x16 icon, we use a default. However, our
current default is the big icon at the top of the extensions page
scaled down to 16x16. I don't think the in-chrome scaling looks very
good.

-- Elliot

Powered by Google App Engine
This is Rietveld 408576698