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

Issue 2548653005: exo: Add initial support for service side decorations. (Closed)

Created:
4 years ago by reveman
Modified:
4 years ago
Reviewers:
Daniele Castagna
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Add initial support for service side decorations. This adds the ability to use service side window decorations for shell surfaces. XDG shell surfaces require client side decorations like before but wl_shell_surfaces are now using service side decorations. The surface bounds logic has been improved to support a client view that is not at the origin of the widget and resize logic is now working correctly when interactive resize is not initiated by the client. BUG= TEST=exo_unittests Committed: https://crrev.com/ae5575e315a97682ce1b3fc881cfd3b828d39941 Cr-Commit-Position: refs/heads/master@{#437391}

Patch Set 1 #

Patch Set 2 : moar #

Patch Set 3 : more #

Total comments: 10

Patch Set 4 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -146 lines) Patch
M components/exo/display.cc View 3 chunks +11 lines, -7 lines 0 comments Download
M components/exo/pointer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/exo/shell_surface.h View 1 2 6 chunks +18 lines, -7 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 27 chunks +130 lines, -62 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 15 chunks +28 lines, -21 lines 0 comments Download
M components/exo/touch_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/exo/wayland/server.cc View 1 2 9 chunks +52 lines, -46 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
reveman
4 years ago (2016-12-03 00:14:46 UTC) #2
Daniele Castagna
LGTM https://codereview.chromium.org/2548653005/diff/40001/components/exo/pointer_unittest.cc File components/exo/pointer_unittest.cc (right): https://codereview.chromium.org/2548653005/diff/40001/components/exo/pointer_unittest.cc#newcode179 components/exo/pointer_unittest.cc:179: false, ash::kShellWindowId_DefaultContainer)); supernit: Do you want to add ...
4 years ago (2016-12-08 20:19:13 UTC) #3
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/2548653005/60001
4 years ago (2016-12-08 21:34:49 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-08 23:01:44 UTC) #8
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/ae5575e315a97682ce1b3fc881cfd3b828d39941 Cr-Commit-Position: refs/heads/master@{#437391}
4 years ago (2016-12-08 23:03:28 UTC) #10
reveman
4 years ago (2016-12-11 07:14:05 UTC) #11
Message was sent while issue was closed.
hm, I guess these replies never got sent out..

https://codereview.chromium.org/2548653005/diff/40001/components/exo/pointer_...
File components/exo/pointer_unittest.cc (right):

https://codereview.chromium.org/2548653005/diff/40001/components/exo/pointer_...
components/exo/pointer_unittest.cc:179: false,
ash::kShellWindowId_DefaultContainer));
On 2016/12/08 at 20:19:13, Daniele Castagna wrote:
> supernit: Do you want to add /* can_minimize */ as you did in display.cc?

we don't have it for tests (see "true" above) and I'd rather not change that all
over as part of this patch.

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
File components/exo/shell_surface.cc (left):

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
components/exo/shell_surface.cc:1072:
ash::wm::ToWindowShowState(ash::wm::WINDOW_STATE_TYPE_AUTO_POSITIONED) ==
On 2016/12/08 at 20:19:13, Daniele Castagna wrote:
> :( the animations were cool.

sorry. maybe we'll enable them again in the future.

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
File components/exo/shell_surface.cc (right):

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
components/exo/shell_surface.cc:1095: // Notify client of initial state.
On 2016/12/08 at 20:19:13, Daniele Castagna wrote:
> This can go away.

Done.

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
File components/exo/shell_surface.h (right):

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
components/exo/shell_surface.h:54: bool can_minimize,
On 2016/12/08 at 20:19:13, Daniele Castagna wrote:
> nit: Should this be minimizable to stay consistent with activatable that is an
adjective?

The name is chosen based on the window state or widget function it's returned
from. That is currently CanMinimize.

https://codereview.chromium.org/2548653005/diff/40001/components/exo/shell_su...
components/exo/shell_surface.h:287: const bool can_minimize_;
On 2016/12/08 at 20:19:13, Daniele Castagna wrote:
> nit: use an adjective instead?

some reply as above

Powered by Google App Engine
This is Rietveld 408576698