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

Issue 23093020: Set the WM_CLASS property of X11 windows in Linux Aura build. (Closed)

Created:
7 years, 4 months ago by Matt Giuca
Modified:
7 years, 3 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, tfarina, scheib+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Set the WM_CLASS property of X11 windows in Linux Aura build. This sets the WM_CLASS for both browser and app windows, mimicking the behaviour of the existing GTK implementation. Now app windows have the correct grouping, icon and title in the Ubuntu Unity window manager. Also, .desktop shortcut files generated from the Aura build now have the appropriate StartupWMClass key set (which was previously only set by the GTK build). BUG=174743 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220801

Patch Set 1 #

Total comments: 6

Patch Set 2 : Respond to reviews. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -33 lines) Patch
M chrome/browser/shell_integration_linux.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/shell_integration_linux.cc View 1 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/shell_integration_unittest.cc View 6 chunks +0 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/apps/native_app_window_views.cc View 1 5 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 4 chunks +30 lines, -0 lines 2 comments Download
M chrome/browser/web_applications/web_app.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/web_applications/web_app.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/x/x11_util.h View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Matt Giuca
erg: Overall, and for OWNERS: chrome/browser/shell_integration_{linux,unittest}.cc, ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc sky: chrome/browser/shell_integration.*, chrome/browser/ui/views/*, ui/views/widget/widget.h benwells: chrome/browser/web_applications/web_app.* davemoore: ui/base/x/x11_util.* ...
7 years, 4 months ago (2013-08-23 05:32:15 UTC) #1
Elliot Glaysher
lgtm In general, most of the X11 interaction isn't tested very well because of the ...
7 years, 4 months ago (2013-08-23 18:59:17 UTC) #2
sky
https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h#newcode152 chrome/browser/shell_integration.h:152: static std::string GetProgramClassName(); Should this be ifdef'd?
7 years, 4 months ago (2013-08-23 19:41:48 UTC) #3
benwells
https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h#newcode152 chrome/browser/shell_integration.h:152: static std::string GetProgramClassName(); On 2013/08/23 19:41:48, sky wrote: > ...
7 years, 4 months ago (2013-08-26 00:10:28 UTC) #4
Matt Giuca
https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/23093020/diff/1/chrome/browser/shell_integration.h#newcode152 chrome/browser/shell_integration.h:152: static std::string GetProgramClassName(); On 2013/08/26 00:10:29, benwells wrote: > ...
7 years, 4 months ago (2013-08-26 04:46:09 UTC) #5
Matt Giuca
erg: PTAL at shell_integration_linux.{h,cc}, since I moved code from shell_integration.{h,cc} into there. Thanks.
7 years, 4 months ago (2013-08-26 04:48:21 UTC) #6
Elliot Glaysher
slgtm
7 years, 3 months ago (2013-08-26 17:58:00 UTC) #7
benwells
c/b/web_applications lgtm
7 years, 3 months ago (2013-08-27 01:06:19 UTC) #8
Matt Giuca
sky, davemoore: ping.
7 years, 3 months ago (2013-08-29 01:05:00 UTC) #9
sky
https://codereview.chromium.org/23093020/diff/13001/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): https://codereview.chromium.org/23093020/diff/13001/chrome/browser/ui/views/frame/browser_frame.cc#newcode84 chrome/browser/ui/views/frame/browser_frame.cc:84: #if defined(OS_LINUX) Can this be moved to BrowserDesktopRootWindowHostX11 so ...
7 years, 3 months ago (2013-08-29 15:33:47 UTC) #10
Matt Giuca
https://codereview.chromium.org/23093020/diff/13001/chrome/browser/ui/views/frame/browser_frame.cc File chrome/browser/ui/views/frame/browser_frame.cc (right): https://codereview.chromium.org/23093020/diff/13001/chrome/browser/ui/views/frame/browser_frame.cc#newcode84 chrome/browser/ui/views/frame/browser_frame.cc:84: #if defined(OS_LINUX) Good point. I've tried this and it ...
7 years, 3 months ago (2013-08-30 02:47:33 UTC) #11
sky
Based on your comments I assumed you only needed this for browsers. If you need ...
7 years, 3 months ago (2013-08-30 16:58:20 UTC) #12
sky
By find I should say I don't particularly like the platform specific initparams, but I ...
7 years, 3 months ago (2013-08-30 16:58:43 UTC) #13
Matt Giuca
+derat: ui/base/x/x11_util.* (since I haven't gotten a response from DaveMoore). (Technically I already have OWNERS ...
7 years, 3 months ago (2013-09-01 23:44:36 UTC) #14
Daniel Erat
LGTM for ui/base
7 years, 3 months ago (2013-09-02 00:54:30 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mgiuca@chromium.org/23093020/13001
7 years, 3 months ago (2013-09-02 01:00:43 UTC) #16
commit-bot: I haz the power
7 years, 3 months ago (2013-09-02 05:26:40 UTC) #17
Message was sent while issue was closed.
Change committed as 220801

Powered by Google App Engine
This is Rietveld 408576698