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

Issue 2688483003: exo: Refactor ShellSurface and WaylandRemoteShell (Closed)

Created:
3 years, 10 months ago by Dominik Laskowski
Modified:
3 years, 10 months ago
Reviewers:
reveman, oshima
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Refactor ShellSurface and WaylandRemoteShell The gfx::Size part of ShellSurface::initial_bounds_ was abused to tell shell surface types apart, i.e. their behavior implicitly depended on otherwise unused initial state, e.g. gfx::Size(1, 1). This CL replaces initial_bounds_ with an origin_ and explicit state that determines how shell surface bounds are controlled. This CL also includes miscellaneous style cleanups. BUG=642894 TEST=None Review-Url: https://codereview.chromium.org/2688483003 Cr-Commit-Position: refs/heads/master@{#450533} Committed: https://chromium.googlesource.com/chromium/src/+/886e1c8ecc4e7cfdf003f9dddbc0f0f05b8b9180

Patch Set 1 #

Total comments: 22

Patch Set 2 : Address nits #

Total comments: 22

Patch Set 3 : Address more nits #

Patch Set 4 : Revert unnecessary changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -151 lines) Patch
M components/exo/display.cc View 3 chunks +11 lines, -10 lines 0 comments Download
M components/exo/pointer_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M components/exo/shell_surface.h View 4 chunks +19 lines, -4 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 19 chunks +87 lines, -68 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 9 chunks +27 lines, -27 lines 0 comments Download
M components/exo/test/exo_test_helper.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 6 chunks +24 lines, -35 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (17 generated)
Dominik Laskowski
PTAL. Split from https://codereview.chromium.org/2645663004/
3 years, 10 months ago (2017-02-09 02:52:59 UTC) #4
reveman
https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc#newcode579 components/exo/shell_surface.cc:579: NOTREACHED(); How are we protected from a malicious client ...
3 years, 10 months ago (2017-02-09 04:50:16 UTC) #5
Dominik Laskowski
https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc#newcode579 components/exo/shell_surface.cc:579: NOTREACHED(); On 2017/02/09 04:50:15, reveman wrote: > How are ...
3 years, 10 months ago (2017-02-09 23:35:28 UTC) #8
reveman
lgtm % nits and last set of comments https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/1/components/exo/shell_surface.cc#newcode579 components/exo/shell_surface.cc:579: NOTREACHED(); ...
3 years, 10 months ago (2017-02-10 02:10:54 UTC) #9
Dominik Laskowski
https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc#newcode579 components/exo/shell_surface.cc:579: break; On 2017/02/10 02:10:53, reveman wrote: > return; Done. ...
3 years, 10 months ago (2017-02-10 03:05:19 UTC) #10
reveman
https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc#newcode1307 components/exo/shell_surface.cc:1307: switch (bounds_mode_) { On 2017/02/10 at 03:05:18, Dominik Laskowski ...
3 years, 10 months ago (2017-02-10 05:51:54 UTC) #15
Dominik Laskowski
https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2688483003/diff/20001/components/exo/shell_surface.cc#newcode1307 components/exo/shell_surface.cc:1307: switch (bounds_mode_) { On 2017/02/10 05:51:54, reveman wrote: > ...
3 years, 10 months ago (2017-02-10 18:47:17 UTC) #18
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/2688483003/60001
3 years, 10 months ago (2017-02-14 23:24:03 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 01:09:36 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/886e1c8ecc4e7cfdf003f9dddbc0...

Powered by Google App Engine
This is Rietveld 408576698