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

Issue 10381063: Aura/ash split: Don't use X11 window borders. (Closed)

Created:
8 years, 7 months ago by Elliot Glaysher
Modified:
8 years, 7 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Aura/ash split: Don't use X11 window borders. This disables window manager borders, and supports dragging of the skyline, as well as resizing from the corners. This patch also moves our ::Atom caching out of RootWindowHostLinux and into its own Singleton. BUG=125106 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137525

Patch Set 1 #

Patch Set 2 : Only hide the window borders on the desktop version. #

Patch Set 3 : And add mac/win versions... #

Patch Set 4 : Now with windows/mac implementations #

Total comments: 17

Patch Set 5 : Renames and stuff #

Patch Set 6 : Commnet that we're racing the window manager. #

Total comments: 3

Patch Set 7 : Part 1 of rework as X11WindowEventFilter. #

Patch Set 8 : Part 2: Patch minimization and puts event processing in X11WindowEventFilter. #

Total comments: 3

Patch Set 9 : Change X11AtomCache #

Total comments: 4

Patch Set 10 : derat comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -32 lines) Patch
M ui/aura/root_window_host_linux.h View 1 2 3 4 5 6 1 chunk +0 lines, -12 lines 0 comments Download
M ui/aura/root_window_host_linux.cc View 1 2 3 4 5 6 7 8 6 chunks +12 lines, -19 lines 0 comments Download
A ui/base/x/x11_atom_cache.h View 1 2 3 4 5 6 7 8 9 1 chunk +58 lines, -0 lines 0 comments Download
A ui/base/x/x11_atom_cache.cc View 1 2 3 4 5 6 7 8 1 chunk +65 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_native_widget_helper_aura.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_native_widget_helper_aura.cc View 1 2 3 4 5 6 3 chunks +14 lines, -1 line 0 comments Download
A ui/views/widget/x11_window_event_filter.h View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
A ui/views/widget/x11_window_event_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +193 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Elliot Glaysher
http://codereview.chromium.org/10381063/diff/21/ui/aura/desktop/desktop_root_window_event_filter.cc File ui/aura/desktop/desktop_root_window_event_filter.cc (right): http://codereview.chromium.org/10381063/diff/21/ui/aura/desktop/desktop_root_window_event_filter.cc#newcode90 ui/aura/desktop/desktop_root_window_event_filter.cc:90: // like I'm copypasting the entire file. I think ...
8 years, 7 months ago (2012-05-09 19:39:18 UTC) #1
Daniel Erat
http://codereview.chromium.org/10381063/diff/21/ui/aura/event.cc File ui/aura/event.cc (right): http://codereview.chromium.org/10381063/diff/21/ui/aura/event.cc#newcode128 ui/aura/event.cc:128: // TODO(oshima): This isn't correct with more than two ...
8 years, 7 months ago (2012-05-09 20:58:27 UTC) #2
Elliot Glaysher
ptal http://codereview.chromium.org/10381063/diff/21/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10381063/diff/21/ui/aura/root_window_host_linux.cc#newcode832 ui/aura/root_window_host_linux.cc:832: sizeof(MotifWmHints)/sizeof(long)); On 2012/05/09 20:58:27, Daniel Erat wrote: > ...
8 years, 7 months ago (2012-05-09 22:23:08 UTC) #3
Daniel Erat
LGTM for X stuff. http://codereview.chromium.org/10381063/diff/21/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): http://codereview.chromium.org/10381063/diff/21/ui/aura/root_window_host_linux.cc#newcode832 ui/aura/root_window_host_linux.cc:832: sizeof(MotifWmHints)/sizeof(long)); On 2012/05/09 22:23:09, Elliot ...
8 years, 7 months ago (2012-05-09 22:38:16 UTC) #4
sadrul
http://codereview.chromium.org/10381063/diff/1011/ui/aura/event.cc File ui/aura/event.cc (right): http://codereview.chromium.org/10381063/diff/1011/ui/aura/event.cc#newcode103 ui/aura/event.cc:103: root_location_(ui::EventRootLocationFromNative(native_event)) { This might be tricky; I think 'root_location_' ...
8 years, 7 months ago (2012-05-10 13:34:10 UTC) #5
Ben Goodger (Google)
http://codereview.chromium.org/10381063/diff/1011/ui/aura/root_window_host.h File ui/aura/root_window_host.h (right): http://codereview.chromium.org/10381063/diff/1011/ui/aura/root_window_host.h#newcode98 ui/aura/root_window_host.h:98: virtual void SetUseHostWindowBorders(bool use_os_borders) = 0; So I'd rather ...
8 years, 7 months ago (2012-05-10 14:52:58 UTC) #6
Elliot Glaysher
Everyone, PTAL. derat: I've modified where the X11 code lives and split off the X11 ...
8 years, 7 months ago (2012-05-15 20:45:19 UTC) #7
Ben Goodger (Google)
Cool. I like this approach more. I'll let the X-heads comment on your X11 stuff. ...
8 years, 7 months ago (2012-05-15 20:52:07 UTC) #8
Daniel Erat
http://codereview.chromium.org/10381063/diff/11034/ui/base/x/x11_atom_cache.cc File ui/base/x/x11_atom_cache.cc (right): http://codereview.chromium.org/10381063/diff/11034/ui/base/x/x11_atom_cache.cc#newcode14 ui/base/x/x11_atom_cache.cc:14: // X11 server. Must be kept in sync with ...
8 years, 7 months ago (2012-05-15 20:59:40 UTC) #9
Elliot Glaysher
http://codereview.chromium.org/10381063/diff/11034/ui/base/x/x11_atom_cache.cc File ui/base/x/x11_atom_cache.cc (right): http://codereview.chromium.org/10381063/diff/11034/ui/base/x/x11_atom_cache.cc#newcode14 ui/base/x/x11_atom_cache.cc:14: // X11 server. Must be kept in sync with ...
8 years, 7 months ago (2012-05-15 21:56:32 UTC) #10
sadrul
lgtm http://codereview.chromium.org/10381063/diff/4004/ui/base/x/x11_atom_cache.h File ui/base/x/x11_atom_cache.h (right): http://codereview.chromium.org/10381063/diff/4004/ui/base/x/x11_atom_cache.h#newcode34 ui/base/x/x11_atom_cache.h:34: // Pre-caches all Atoms on first use to ...
8 years, 7 months ago (2012-05-15 22:08:12 UTC) #11
Daniel Erat
LGTM Thanks, this looks good to me. Just one nit and a question. http://codereview.chromium.org/10381063/diff/4004/ui/views/widget/x11_window_event_filter.cc File ...
8 years, 7 months ago (2012-05-15 22:31:23 UTC) #12
Elliot Glaysher
done. http://codereview.chromium.org/10381063/diff/4004/ui/views/widget/x11_window_event_filter.cc File ui/views/widget/x11_window_event_filter.cc (right): http://codereview.chromium.org/10381063/diff/4004/ui/views/widget/x11_window_event_filter.cc#newcode95 ui/views/widget/x11_window_event_filter.cc:95: case ButtonRelease: { On 2012/05/15 22:31:23, Daniel Erat ...
8 years, 7 months ago (2012-05-15 23:01:19 UTC) #13
Elliot Glaysher
ping ben; need ui/ stamp
8 years, 7 months ago (2012-05-16 17:11:01 UTC) #14
Ben Goodger (Google)
lgtm
8 years, 7 months ago (2012-05-16 19:47:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/10381063/1015
8 years, 7 months ago (2012-05-16 19:48:27 UTC) #16
commit-bot: I haz the power
Change committed as 137525
8 years, 7 months ago (2012-05-16 21:34:53 UTC) #17
DaleCurtis
On 2012/05/16 21:34:53, I haz the power (commit-bot) wrote: > Change committed as 137525 This ...
8 years, 7 months ago (2012-05-18 00:34:27 UTC) #18
Elliot Glaysher
8 years, 7 months ago (2012-05-18 16:31:34 UTC) #19
Possibly, but there's nothing aura specific here. There's a rule in
filename_rules.gypi that should filter out any file starting with x11_
when use_x11!=1.

I'm not really sure what a linux build without use_x11 would be at
this point, since we pulled wayland out.

-- Elliot

On Thu, May 17, 2012 at 5:34 PM,  <dalecurtis@chromium.org> wrote:
> On 2012/05/16 21:34:53, I haz the power (commit-bot) wrote:
>>
>> Change committed as 137525
>
>
> This is causing a missing base::MessagePumpX::GetDefaultXDisplay() symbol in
> libui.so when built w/o aura:
>
> https://code.google.com/p/chromium/issues/detail?id=128584
>
> Seems like x11_atom_cache probably should be in sources! for ui.gyp when
> use_aura == 0, however I'm not sure.
>
> https://chromiumcodereview.appspot.com/10381063/

Powered by Google App Engine
This is Rietveld 408576698