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

Issue 2632543003: Refactor and push window properties up to class properties. (Closed)

Created:
3 years, 11 months ago by kylix_rd
Modified:
3 years, 10 months ago
Reviewers:
robliao, reveman, sky
CC:
chromium-reviews, dcheng, kalyank, Peter Kasting, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor and push window properties up to class properties. This is a precondition for being able to use properties on view classes and not just Aura classes. Review-Url: https://codereview.chromium.org/2632543003 Cr-Commit-Position: refs/heads/master@{#447039} Committed: https://chromium.googlesource.com/chromium/src/+/61e45cfa8c57280973848e75d31eae78c27a3e62

Patch Set 1 #

Total comments: 16

Patch Set 2 : XXX_CLASS_PROPERTY_XXX -> XXX_UI_CLASS_PROPERTY_XXX. Added unittests. #

Patch Set 3 : Caught a few stragglers #

Total comments: 21

Patch Set 4 : More changes based on feedback #

Total comments: 1

Patch Set 5 : Fixed merge conflicts #

Patch Set 6 : Fixed some build errors #

Patch Set 7 : More build fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+769 lines, -607 lines) Patch
M ash/aura/aura_layout_manager_adapter.cc View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M ash/common/wm_window.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ash/display/root_window_transformers.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M ash/display/window_tree_host_manager.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/bridge/workspace_event_handler_mus.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ash/mus/disconnected_app_handler.cc View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M ash/mus/move_event_handler.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ash/mus/non_client_frame_controller.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ash/mus/shadow.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/window_properties.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ash/root_window_settings.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M ash/test/ui_controls_factory_ash.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ash/touch/touch_uma.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_properties.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ash/wm/window_properties.cc View 1 1 chunk +17 lines, -17 lines 0 comments Download
M chrome/browser/ui/ash/launcher/settings_window_observer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M components/exo/surface.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 1 chunk +39 lines, -38 lines 0 comments Download
M ui/aura/client/capture_client.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M ui/aura/client/cursor_client.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/client/drag_drop_client.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/client/drag_drop_delegate.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/client/event_client.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M ui/aura/client/focus_change_observer.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/client/focus_client.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/aura/client/screen_position_client.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ui/aura/client/visibility_client.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M ui/aura/client/window_parenting_client.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M ui/aura/mus/mus_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/property_converter.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/property_converter_unittest.cc View 1 1 chunk +23 lines, -22 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M ui/aura/window.h View 1 2 7 chunks +12 lines, -47 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 3 chunks +12 lines, -45 lines 0 comments Download
M ui/aura/window_port.h View 1 3 chunks +3 lines, -7 lines 0 comments Download
M ui/aura/window_port_local.h View 2 chunks +3 lines, -2 lines 0 comments Download
M ui/aura/window_port_local.cc View 1 chunk +2 lines, -2 lines 0 comments Download
D ui/aura/window_property.h View 1 chunk +0 lines, -157 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 chunks +9 lines, -82 lines 0 comments Download
M ui/base/BUILD.gn View 1 3 chunks +4 lines, -0 lines 0 comments Download
A ui/base/class_property.h View 1 1 chunk +232 lines, -0 lines 2 comments Download
A ui/base/class_property.cc View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A ui/base/class_property_unittest.cc View 1 2 3 1 chunk +116 lines, -0 lines 0 comments Download
A ui/base/property_data.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M ui/views/view_constants_aura.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M ui/wm/core/shadow_controller.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/core/shadow_types.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M ui/wm/core/transient_window_manager.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/core/visibility_controller.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/core/window_animations.cc View 1 3 chunks +14 lines, -14 lines 0 comments Download
M ui/wm/core/window_modality_controller.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/wm/public/activation_change_observer.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/wm/public/activation_client.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M ui/wm/public/activation_delegate.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/wm/public/animation_host.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ui/wm/public/tooltip_client.cc View 1 2 3 4 1 chunk +8 lines, -6 lines 0 comments Download
M ui/wm/public/window_move_client.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 50 (35 generated)
kylix_rd
This is the preparatory phase for moving Aura window properties into ui/base for use in ...
3 years, 11 months ago (2017-01-13 17:24:34 UTC) #4
sky
I only looked at ui/base. Could you also promote tests? https://codereview.chromium.org/2632543003/diff/1/ui/aura/window.h File ui/aura/window.h (right): https://codereview.chromium.org/2632543003/diff/1/ui/aura/window.h#newcode301 ...
3 years, 11 months ago (2017-01-13 20:28:21 UTC) #5
kylix_rd
I waited on the tests in order to ensure I'm heading in the right direction. ...
3 years, 11 months ago (2017-01-13 21:44:59 UTC) #6
sky
I think you're heading in the right direction. The only open question is putting in ...
3 years, 11 months ago (2017-01-13 21:51:58 UTC) #7
Peter Kasting
On 2017/01/13 21:51:58, sky wrote: > I think you're heading in the right direction. I ...
3 years, 11 months ago (2017-01-17 20:43:39 UTC) #8
kylix_rd
This patch includes unit tests and addresses all the suggestions and comments. Some files missing ...
3 years, 11 months ago (2017-01-24 15:14:54 UTC) #10
sky
You can blame me for the misspelling of GetAllPropertyKeys. As you'll need an owner of ...
3 years, 11 months ago (2017-01-24 18:45:38 UTC) #11
kylix_rd
There are a couple of places which have wholesale copied the content and behavior of ...
3 years, 11 months ago (2017-01-24 21:20:00 UTC) #13
kylix_rd
On 2017/01/24 21:20:00, kylix_rd wrote: > ash/common/wm_window_property.h Oops. Wrong file.
3 years, 11 months ago (2017-01-24 21:35:21 UTC) #14
sky
LGTM https://codereview.chromium.org/2632543003/diff/30001/ui/aura/client/window_parenting_client.cc File ui/aura/client/window_parenting_client.cc (right): https://codereview.chromium.org/2632543003/diff/30001/ui/aura/client/window_parenting_client.cc#newcode10 ui/aura/client/window_parenting_client.cc:10: #include "ui/base/class_property.h" On 2017/01/24 21:20:00, kylix_rd wrote: > ...
3 years, 11 months ago (2017-01-24 22:36:13 UTC) #15
reveman
components/exo lgtm
3 years, 10 months ago (2017-01-27 18:17:49 UTC) #16
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/2632543003/150001
3 years, 10 months ago (2017-01-30 19:44:45 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:150001) as https://chromium.googlesource.com/chromium/src/+/61e45cfa8c57280973848e75d31eae78c27a3e62
3 years, 10 months ago (2017-01-30 19:53:34 UTC) #48
sky
https://codereview.chromium.org/2632543003/diff/150001/ui/base/class_property.h File ui/base/class_property.h (right): https://codereview.chromium.org/2632543003/diff/150001/ui/base/class_property.h#newcode91 ui/base/class_property.h:91: std::set<const void*> GetAllPropertyKeys() const; Thanks for fixing the spelling ...
3 years, 10 months ago (2017-02-01 00:54:03 UTC) #49
kylix_rd
3 years, 10 months ago (2017-02-01 18:43:14 UTC) #50
Message was sent while issue was closed.
https://codereview.chromium.org/2632543003/diff/150001/ui/base/class_property.h
File ui/base/class_property.h (right):

https://codereview.chromium.org/2632543003/diff/150001/ui/base/class_property...
ui/base/class_property.h:91: std::set<const void*> GetAllPropertyKeys() const;
On 2017/02/01 00:54:02, sky wrote:
> Thanks for fixing the spelling here!

Not a problem. It happens.

Powered by Google App Engine
This is Rietveld 408576698