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

Issue 2628043002: Gtk3: Render a GtkHeaderBar as the background of the tab strip (Closed)

Created:
3 years, 11 months ago by Tom (Use chromium acct)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gtk3: Render a GtkHeaderBar as the background of the tab strip This CL changes the Gtk3 theme to render a GtkHeaderBar background behind the tab strip. This should give a more native look-and-feel for Linux UI. A demonstration of the change can be seen in: https://bugs.chromium.org/p/chromium/issues/detail?id=132847#c42 BUG=132847, 590301 R=pkasting@chromium.org,erg@chromium.org,sky@chromium.org Review-Url: https://codereview.chromium.org/2628043002 Cr-Commit-Position: refs/heads/master@{#445818} Committed: https://chromium.googlesource.com/chromium/src/+/2bbf4303d8af1e49e748bb2d7e131d114daa7354

Patch Set 1 #

Total comments: 18

Patch Set 2 : sky@'s comments #

Patch Set 3 : Move set_* into OnPaint #

Total comments: 2

Patch Set 4 : Handle incognito #

Total comments: 2

Patch Set 5 : . #

Patch Set 6 : Handle custom frames #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : Rebase #

Patch Set 9 : Guard kFrameTopArea with #if defined(OS_LINUX) && !defined(OS_CHROMEOS) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -61 lines) Patch
M chrome/browser/ui/libgtkui/gtk_ui.cc View 1 2 3 3 chunks +1 line, -12 lines 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.h View 1 2 3 4 5 6 7 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/gtk_util.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.cc View 1 2 3 4 5 6 7 4 chunks +44 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 4 chunks +9 lines, -13 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_base.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_base.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -0 lines 0 comments Download
M ui/views/window/custom_frame_view.cc View 1 2 3 4 5 3 chunks +8 lines, -8 lines 0 comments Download
M ui/views/window/frame_background.h View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M ui/views/window/frame_background.cc View 1 2 3 4 5 6 7 8 4 chunks +25 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 46 (22 generated)
Tom (Use chromium acct)
reviewers PTAL erg: chrome/browser/ui/libgtkui/gtk_ui.cc chrome/browser/ui/libgtkui/gtk_util.h chrome/browser/ui/libgtkui/native_theme_gtk3.cc chrome/browser/ui/libgtkui/native_theme_gtk3.h pkasting: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ui/native_theme/native_theme.h ui/native_theme/native_theme_base.cc ui/native_theme/native_theme_base.h sky: ui/views/window/custom_frame_view.cc ui/views/window/frame_background.cc ...
3 years, 11 months ago (2017-01-11 20:07:28 UTC) #3
Elliot Glaysher
I just want to verify: this doesn't cause any problems with chrome browser themed painting, ...
3 years, 11 months ago (2017-01-11 20:52:32 UTC) #4
sky
https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc#newcode223 ui/views/window/custom_frame_view.cc:223: Any reason not to call set_is_active here? Calling set_is_active ...
3 years, 11 months ago (2017-01-11 21:54:52 UTC) #5
Tom (Use chromium acct)
On 2017/01/11 20:52:32, Elliot Glaysher wrote: > I just want to verify: this doesn't cause ...
3 years, 11 months ago (2017-01-11 22:44:48 UTC) #6
Elliot Glaysher
chrome/browser/ui/libgtkui/ lgtm
3 years, 11 months ago (2017-01-11 22:57:38 UTC) #7
sky
https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc#newcode223 ui/views/window/custom_frame_view.cc:223: On 2017/01/11 22:44:48, Tom Anderson wrote: > On 2017/01/11 ...
3 years, 11 months ago (2017-01-12 00:58:14 UTC) #8
Tom (Use chromium acct)
https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc File ui/views/window/custom_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/ui/views/window/custom_frame_view.cc#newcode223 ui/views/window/custom_frame_view.cc:223: On 2017/01/12 00:58:14, sky wrote: > On 2017/01/11 22:44:48, ...
3 years, 11 months ago (2017-01-12 01:47:29 UTC) #10
sky
LGTM
3 years, 11 months ago (2017-01-12 16:24:49 UTC) #14
Peter Kasting
https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode511 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:511: top_area_height = GetBoundsForTabStrip(browser_view()->tabstrip()).bottom(); On 2017/01/11 20:07:27, Tom Anderson wrote: ...
3 years, 11 months ago (2017-01-12 18:53:53 UTC) #15
Tom (Use chromium acct)
d'oh! I forgot about incognito. Fixed in latest patch set https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode511 ...
3 years, 11 months ago (2017-01-12 21:51:10 UTC) #16
Peter Kasting
https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode511 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:511: top_area_height = GetBoundsForTabStrip(browser_view()->tabstrip()).bottom(); On 2017/01/12 21:51:09, Tom Anderson wrote: ...
3 years, 11 months ago (2017-01-12 22:02:56 UTC) #18
Tom (Use chromium acct)
https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode511 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:511: top_area_height = GetBoundsForTabStrip(browser_view()->tabstrip()).bottom(); On 2017/01/12 22:02:56, Peter Kasting wrote: ...
3 years, 11 months ago (2017-01-12 22:54:13 UTC) #19
Peter Kasting
https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode511 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:511: top_area_height = GetBoundsForTabStrip(browser_view()->tabstrip()).bottom(); On 2017/01/12 22:54:13, Tom Anderson wrote: ...
3 years, 11 months ago (2017-01-12 23:14:05 UTC) #20
Tom (Use chromium acct)
d'oh! I also forgot about "use system titlebar and borders" in chrome:settings. Added a case ...
3 years, 11 months ago (2017-01-13 00:59:51 UTC) #21
Elliot Glaysher
lgtm
3 years, 11 months ago (2017-01-13 18:13:59 UTC) #22
Elliot Glaysher
lgtm lgtm
3 years, 11 months ago (2017-01-13 18:14:00 UTC) #23
Peter Kasting
LGTM https://codereview.chromium.org/2628043002/diff/100001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/100001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode513 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:513: int top_area_height = frame_image.height(); // Returns 0 if ...
3 years, 11 months ago (2017-01-17 21:05:17 UTC) #24
Tom (Use chromium acct)
https://codereview.chromium.org/2628043002/diff/100001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (right): https://codereview.chromium.org/2628043002/diff/100001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#newcode513 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:513: int top_area_height = frame_image.height(); // Returns 0 if isNull() ...
3 years, 11 months ago (2017-01-17 21:23:14 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628043002/120001
3 years, 11 months ago (2017-01-17 21:23:56 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/137091) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-17 21:26:02 UTC) #30
Peter Kasting
Now that kFrameTopArea is Linux-only, and FrameBackground::PaintFrameTopArea() has #ifdefs, is there any way to avoid ...
3 years, 11 months ago (2017-01-24 19:35:12 UTC) #37
Tom (Use chromium acct)
On 2017/01/24 19:35:12, Peter Kasting wrote: > Now that kFrameTopArea is Linux-only, and FrameBackground::PaintFrameTopArea() > ...
3 years, 11 months ago (2017-01-24 19:45:10 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2628043002/160001
3 years, 11 months ago (2017-01-24 20:41:57 UTC) #43
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 21:25:26 UTC) #46
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/2bbf4303d8af1e49e748bb2d7e13...

Powered by Google App Engine
This is Rietveld 408576698