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

Issue 131513005: linux_aura: Use GTK button borders in GTK theme mode. (Closed)

Created:
6 years, 11 months ago by Elliot Glaysher
Modified:
6 years, 11 months ago
Reviewers:
msw, sky, Greg Billock
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

linux_aura: Use GTK button borders in GTK theme mode. Up until recently, the icons for back/forward/home/reload all used borders drawn on the image resources. Then this was changed to use a views::Border to draw on top of the icon. Gtk2UI wasn't similarly changed. This patch adds a Gtk2Border, along with machinery for having the views::LinuxUI vend instances of them to the views layer. This border should theoretically be usable for other buttons, like the bookmark buttons, which are still using the chrome theme resources even in GTK theme mode. BUG=333404 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246444

Patch Set 1 #

Total comments: 17

Patch Set 2 : msw fixes #

Total comments: 2

Patch Set 3 : forgotten #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -5 lines) Patch
A chrome/browser/ui/libgtk2ui/gtk2_border.h View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/gtk2_border.cc View 1 1 chunk +127 lines, -0 lines 1 comment Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.h View 1 8 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 7 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/libgtk2ui.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/back_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/button/label_button.h View 2 chunks +6 lines, -0 lines 2 comments Download
M ui/views/controls/button/label_button.cc View 3 chunks +19 lines, -2 lines 0 comments Download
M ui/views/linux_ui/linux_ui.h View 1 4 chunks +10 lines, -0 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Elliot Glaysher
msw: review gbillock: fyi
6 years, 11 months ago (2014-01-17 20:44:20 UTC) #1
msw
Sorry for the delay; most comments are just for simplifications and naming. https://codereview.chromium.org/131513005/diff/1/chrome/browser/ui/libgtk2ui/gtk2_border.cc File chrome/browser/ui/libgtk2ui/gtk2_border.cc ...
6 years, 11 months ago (2014-01-21 19:18:19 UTC) #2
Elliot Glaysher
ptal
6 years, 11 months ago (2014-01-21 23:06:54 UTC) #3
msw
LGTM with a couple nits. https://codereview.chromium.org/131513005/diff/1/chrome/browser/ui/libgtk2ui/gtk2_border.h File chrome/browser/ui/libgtk2ui/gtk2_border.h (right): https://codereview.chromium.org/131513005/diff/1/chrome/browser/ui/libgtk2ui/gtk2_border.h#newcode10 chrome/browser/ui/libgtk2ui/gtk2_border.h:10: #include "ui/views/controls/button/button.h" On 2014/01/21 ...
6 years, 11 months ago (2014-01-22 02:21:07 UTC) #4
Elliot Glaysher
+sky: owners stamp
6 years, 11 months ago (2014-01-22 18:18:32 UTC) #5
sky
LGTM with the following changes. https://codereview.chromium.org/131513005/diff/390001/chrome/browser/ui/libgtk2ui/gtk2_border.cc File chrome/browser/ui/libgtk2ui/gtk2_border.cc (right): https://codereview.chromium.org/131513005/diff/390001/chrome/browser/ui/libgtk2ui/gtk2_border.cc#newcode53 chrome/browser/ui/libgtk2ui/gtk2_border.cc:53: GtkStateType state_; nit: const ...
6 years, 11 months ago (2014-01-22 20:23:58 UTC) #6
Elliot Glaysher
https://codereview.chromium.org/131513005/diff/390001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/131513005/diff/390001/ui/views/controls/button/label_button.h#newcode102 ui/views/controls/button/label_button.h:102: void UpdateThemedBorder(LabelButtonBorder* label_button_border); On 2014/01/22 20:23:59, sky wrote: > ...
6 years, 11 months ago (2014-01-22 21:12:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/131513005/390001
6 years, 11 months ago (2014-01-22 21:13:04 UTC) #8
commit-bot: I haz the power
6 years, 11 months ago (2014-01-22 23:34:03 UTC) #9
Message was sent while issue was closed.
Change committed as 246444

Powered by Google App Engine
This is Rietveld 408576698