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

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed)

Created:
4 years, 7 months ago by Sam McNally
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blundell+watchlist_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, droger+watchlist_chromium.org, feature-media-reviews_chromium.org, jam, kalyank, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, sadrul, sdefresne+watchlist_chromium.org, tfarina, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change mojo geometry structs from using type converters to StructTraits. Committed: https://crrev.com/813a8eb3f62bb12d902cd9e31cb60a9b4e745e92 Cr-Commit-Position: refs/heads/master@{#396631}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -794 lines) Patch
M ash/sysui/keyboard_ui_mus.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/sysui/keyboard_ui_mus.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/bitmap_uploader/DEPS View 1 1 chunk +0 lines, -2 lines 0 comments Download
M components/bitmap_uploader/bitmap_uploader.h View 2 chunks +1 line, -2 lines 0 comments Download
M components/bitmap_uploader/bitmap_uploader.cc View 1 7 chunks +19 lines, -27 lines 0 comments Download
M components/mus/gles2/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 4 chunks +4 lines, -6 lines 0 comments Download
M components/mus/gles2/command_buffer_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/mus/gles2/command_buffer_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/mus/gles2/command_buffer_local.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M components/mus/gpu/gpu_service_mus.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/mus/gpu/gpu_service_mus.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/mus/public/cpp/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/public/cpp/lib/command_buffer_client_impl.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 2 3 4 8 chunks +17 lines, -24 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_type_converters.cc View 1 2 3 4 19 chunks +50 lines, -79 lines 0 comments Download
M components/mus/public/cpp/surfaces/surfaces_utils.cc View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M components/mus/public/cpp/surfaces/tests/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 3 4 7 chunks +14 lines, -17 lines 0 comments Download
M components/mus/public/cpp/tests/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.h View 1 chunk +5 lines, -6 lines 0 comments Download
M components/mus/public/cpp/tests/test_window_tree.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_private.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 1 2 3 4 5 chunks +4 lines, -7 lines 0 comments Download
M components/mus/public/interfaces/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/mus/surfaces/BUILD.gn View 1 4 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/test_wm/test_wm.cc View 1 2 3 4 2 chunks +0 lines, -5 lines 0 comments Download
M components/mus/ws/BUILD.gn View 1 2 3 4 3 chunks +1 line, -4 lines 0 comments Download
M components/mus/ws/display.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/mus/ws/display.cc View 1 2 3 4 4 chunks +5 lines, -13 lines 0 comments Download
M components/mus/ws/event_dispatcher.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/event_matcher.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M components/mus/ws/platform_display.cc View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download
M components/mus/ws/server_window.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/server_window_surface.cc View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M components/mus/ws/test_change_tracker.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M components/mus/ws/test_change_tracker.cc View 1 3 chunks +5 lines, -17 lines 0 comments Download
M components/mus/ws/test_utils.h View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M components/mus/ws/test_utils.cc View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M components/mus/ws/user_display_manager_unittest.cc View 1 chunk +1 line, -5 lines 0 comments Download
M components/mus/ws/window_manager_client_unittest.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M components/mus/ws/window_manager_state.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M components/mus/ws/window_server.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/mus/ws/window_tree.h View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 3 4 10 chunks +14 lines, -17 lines 0 comments Download
M components/mus/ws/window_tree_client_unittest.cc View 1 2 3 4 6 chunks +9 lines, -15 lines 0 comments Download
M components/mus/ws/window_tree_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M content/common/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/image_downloader/image_downloader_impl.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M mash/browser/browser.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M mash/webtest/webtest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M mash/wm/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M mash/wm/non_client_frame_controller.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/wm/root_window_controller.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mash/wm/window_manager.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M media/mojo/common/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/mojo/common/media_type_converters.cc View 1 5 chunks +15 lines, -18 lines 0 comments Download
M media/mojo/interfaces/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/media_mojo_unittest.cc View 1 chunk +1 line, -7 lines 0 comments Download
M media/mojo/services/mojo_renderer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/services/mojo_renderer_impl.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M media/mojo/services/mojo_renderer_service.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M mojo/public/cpp/bindings/array.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M services/navigation/navigation_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/navigation/public/interfaces/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M services/navigation/view_impl.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/display/mojo/display_type_converters.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M ui/events/mojo/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/mojo/input_events_type_converters.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/geometry/mojo/BUILD.gn View 1 1 chunk +1 line, -31 lines 0 comments Download
M ui/gfx/geometry/mojo/DEPS View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/geometry/mojo/geometry.mojom View 1 2 chunks +12 lines, -0 lines 0 comments Download
A ui/gfx/geometry/mojo/geometry.typemap View 1 1 chunk +27 lines, -0 lines 0 comments Download
A ui/gfx/geometry/mojo/geometry_struct_traits.h View 1 1 chunk +110 lines, -0 lines 1 comment Download
D ui/gfx/geometry/mojo/geometry_type_converters.h View 1 1 chunk +0 lines, -102 lines 0 comments Download
D ui/gfx/geometry/mojo/geometry_type_converters.cc View 1 1 chunk +0 lines, -153 lines 0 comments Download
D ui/gfx/geometry/mojo/geometry_util.h View 1 1 chunk +0 lines, -39 lines 0 comments Download
D ui/gfx/geometry/mojo/mojo_geometry_export.h View 1 1 chunk +0 lines, -32 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 chunks +5 lines, -19 lines 0 comments Download
M ui/gfx/mojo/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
A ui/gfx/typemaps.gni View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ui/keyboard/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/screen_mus.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M ui/views/mus/surface_binding.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (11 generated)
Sam McNally
+dcheng for media/mojo/common/media_type_converters.cc +sky for ash, components, mash, mojo and ui +xhwang for media +ben ...
4 years, 7 months ago (2016-05-26 06:07:24 UTC) #7
Ben Goodger (Google)
awesome! thanks for doing this. you'll have to merge my change from last night that ...
4 years, 7 months ago (2016-05-26 13:42:30 UTC) #8
sky
LGTM
4 years, 7 months ago (2016-05-26 16:12:56 UTC) #9
xhwang
media/ lgtm
4 years, 7 months ago (2016-05-26 16:14:16 UTC) #10
dcheng
https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/command_buffer_client_impl.cc File components/mus/public/cpp/lib/command_buffer_client_impl.cc (right): https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/command_buffer_client_impl.cc#newcode216 components/mus/public/cpp/lib/command_buffer_client_impl.cc:216: gfx::Size size(static_cast<int32_t>(width), static_cast<int32_t>(height)); Not related to your change but ...
4 years, 7 months ago (2016-05-26 22:20:41 UTC) #11
Sam McNally
https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc File components/mus/public/cpp/lib/window_tree_client_impl.cc (right): https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc#newcode309 components/mus/public/cpp/lib/window_tree_client_impl.cc:309: std::vector<gfx::Rect>(additional_client_areas)); On 2016/05/26 22:20:40, dcheng wrote: > Why is ...
4 years, 7 months ago (2016-05-27 03:44:47 UTC) #13
dcheng
https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc File components/mus/public/cpp/lib/window_tree_client_impl.cc (right): https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc#newcode309 components/mus/public/cpp/lib/window_tree_client_impl.cc:309: std::vector<gfx::Rect>(additional_client_areas)); On 2016/05/27 at 03:44:47, Sam McNally wrote: > ...
4 years, 7 months ago (2016-05-27 03:47:54 UTC) #14
Sam McNally
https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc File components/mus/public/cpp/lib/window_tree_client_impl.cc (right): https://codereview.chromium.org/2008193002/diff/100001/components/mus/public/cpp/lib/window_tree_client_impl.cc#newcode309 components/mus/public/cpp/lib/window_tree_client_impl.cc:309: std::vector<gfx::Rect>(additional_client_areas)); On 2016/05/27 03:47:54, dcheng wrote: > On 2016/05/27 ...
4 years, 7 months ago (2016-05-27 06:34:06 UTC) #15
dcheng
mojom lgtm Given that Chrome generally passes by const ref, I think this makes sense ...
4 years, 7 months ago (2016-05-27 06:53:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008193002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008193002/220001
4 years, 6 months ago (2016-05-28 03:26:27 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:220001)
4 years, 6 months ago (2016-05-28 03:34:20 UTC) #21
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/813a8eb3f62bb12d902cd9e31cb60a9b4e745e92 Cr-Commit-Position: refs/heads/master@{#396631}
4 years, 6 months ago (2016-05-28 03:35:41 UTC) #23
dcheng
4 years, 6 months ago (2016-06-07 23:38:37 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2008193002/diff/220001/ui/gfx/geometry/mojo/g...
File ui/gfx/geometry/mojo/geometry_struct_traits.h (right):

https://codereview.chromium.org/2008193002/diff/220001/ui/gfx/geometry/mojo/g...
ui/gfx/geometry/mojo/geometry_struct_traits.h:83: out->SetRect(data.x(),
data.y(), data.width(), data.height());
I missed this in the initial review, but Rect/RectF should be checked for
negative sizes (that's not permissible). Ditto for gfx::Size/gfx::SizeF.

Powered by Google App Engine
This is Rietveld 408576698