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

Issue 2514243002: Propagates window type properties during aura-mus window creation (Closed)

Created:
4 years, 1 month ago by sky
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, msw
CC:
chromium-reviews, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Propagates window type properties during aura-mus window creation There are two types used to identify windows: . aura::Window::type(), which is ui::wm::WindowType. . ui::mojom::WindowType. This corresponds to the types defined in views::Widget::InitParams::Type. This is a superset of ui::wm::WindowType. As ui::mojom::WindowType is a superset it is really the only one needed. This patch makes it so during window creation a property is passed to the server giving the type. The windowmanager can then use this type when creating the corresponding window so that it knows the type. As this property can't change after creation it doesn't go through PropertyConverter. Really the two types should be combined, but to keep this patch to a minimum I'm not doing that here. BUG=664625 TEST=covered by tests R=msw@chromium.org, tsepez@chromium.org Committed: https://crrev.com/91b6ee4b99b61dd10d741328a1a548a745cf4ffe Cr-Commit-Position: refs/heads/master@{#433756}

Patch Set 1 #

Patch Set 2 : merge to trunk #

Patch Set 3 : return #

Total comments: 14

Patch Set 4 : feedback #

Patch Set 5 : fix mash #

Total comments: 2

Patch Set 6 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -16 lines) Patch
M ash/mus/property_util.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager_constants.mojom View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
A ui/aura/mus/property_utils.h View 1 chunk +30 lines, -0 lines 0 comments Download
A ui/aura/mus/property_utils.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 7 chunks +28 lines, -8 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -1 line 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/mus/mus_client.h View 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 3 4 5 4 chunks +37 lines, -1 line 0 comments Download
M ui/views/test/native_widget_factory_aura_mus.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 35 (23 generated)
sky
4 years, 1 month ago (2016-11-20 17:24:46 UTC) #1
msw
https://codereview.chromium.org/2514243002/diff/40001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2514243002/diff/40001/ui/aura/client/aura_constants.h#newcode111 ui/aura/client/aura_constants.h:111: AURA_EXPORT extern const aura::WindowProperty<WindowTypeProperty*>* const Can we avoid the ...
4 years, 1 month ago (2016-11-21 19:26:47 UTC) #10
sky
https://codereview.chromium.org/2514243002/diff/40001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2514243002/diff/40001/ui/aura/client/aura_constants.h#newcode111 ui/aura/client/aura_constants.h:111: AURA_EXPORT extern const aura::WindowProperty<WindowTypeProperty*>* const On 2016/11/21 19:26:46, msw ...
4 years, 1 month ago (2016-11-21 22:13:56 UTC) #15
Tom Sepez
RS LGTM on mojom adding constant.
4 years, 1 month ago (2016-11-21 22:22:00 UTC) #20
msw
lgtm with a nit https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc File ui/views/mus/mus_client.cc (right): https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc#newcode47 ui/views/mus/mus_client.cc:47: WINDOW_TYPES_MATCH(DRAG); nit: add UNKNOWN too
4 years, 1 month ago (2016-11-21 22:40:45 UTC) #21
sky
https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc File ui/views/mus/mus_client.cc (right): https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc#newcode47 ui/views/mus/mus_client.cc:47: WINDOW_TYPES_MATCH(DRAG); On 2016/11/21 22:40:45, msw wrote: > nit: add ...
4 years, 1 month ago (2016-11-21 22:42:09 UTC) #22
sky
On 2016/11/21 22:42:09, sky wrote: > https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc > File ui/views/mus/mus_client.cc (right): > > https://codereview.chromium.org/2514243002/diff/80001/ui/views/mus/mus_client.cc#newcode47 > ...
4 years, 1 month ago (2016-11-21 22:43:08 UTC) #23
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/2514243002/100001
4 years, 1 month ago (2016-11-21 23:13:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/277282)
4 years, 1 month ago (2016-11-22 00:10:35 UTC) #28
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/2514243002/100001
4 years, 1 month ago (2016-11-22 00:11:39 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-22 02:54:22 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 02:56:38 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/91b6ee4b99b61dd10d741328a1a548a745cf4ffe
Cr-Commit-Position: refs/heads/master@{#433756}

Powered by Google App Engine
This is Rietveld 408576698