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

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed)

Created:
6 years, 2 months ago by msw
Modified:
6 years, 2 months ago
Reviewers:
jamesr, reed1, sadrul, piman
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move mojo/services/public/cpp TypeConverters to mojo/converters. Move geometry, input_event and surfaces TypeConverters. Move conversion-related helpers and tests as well. Flatten lib sub-directories into their parents. Update includes, guards, DEPS, GYP, and GN. Add mojo_converters.gypi to avoid a false-positive cycle. BUG=421234 TEST=No GYP, GN, compile, or link problems. R=jamesr@chromium.org TBR=reed@google.com,sadrul@chromium.org,piman@chromium.org Committed: https://crrev.com/500dcd12ad141f66af11b7a1b371642bcb5fee98 Cr-Commit-Position: refs/heads/master@{#299055}

Patch Set 1 #

Patch Set 2 : Fix GN. #

Total comments: 12

Patch Set 3 : Sync and rebase. #

Patch Set 4 : Restore the directory and component structures and target names. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -2337 lines) Patch
M mojo/BUILD.gn View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M mojo/aura/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/aura/surface_binding.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/cc/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/cc/output_surface_mojo.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + mojo/converters/geometry/BUILD.gn View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + mojo/converters/geometry/DEPS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/converters/geometry/geometry_type_converters.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + mojo/converters/geometry/geometry_type_converters.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + mojo/converters/geometry/mojo_geometry_export.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/converters/input_events/BUILD.gn View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
A + mojo/converters/input_events/DEPS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/converters/input_events/input_event_names.h View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/converters/input_events/input_events_type_converters.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + mojo/converters/input_events/input_events_type_converters.cc View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
A + mojo/converters/input_events/mojo_extended_key_event_data.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + mojo/converters/input_events/mojo_extended_key_event_data.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + mojo/converters/input_events/mojo_input_events_export.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/converters/surfaces/BUILD.gn View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
A + mojo/converters/surfaces/DEPS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/converters/surfaces/mojo_surfaces_export.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/converters/surfaces/surfaces_type_converters.h View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
A + mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + mojo/converters/surfaces/surfaces_utils.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + mojo/converters/surfaces/surfaces_utils.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + mojo/converters/surfaces/tests/BUILD.gn View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/aura_demo/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/bitmap_uploader/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/bitmap_uploader/bitmap_uploader.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/examples/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/browser/browser.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/compositor_app/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/compositor_app/compositor_app.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/keyboard/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/media_viewer/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/surfaces_app/BUILD.gn View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M mojo/examples/surfaces_app/child_gl_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/surfaces_app/child_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/surfaces_app/embedder.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/surfaces_app/surfaces_app.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/window_manager/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/examples/window_manager/window_manager.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/mojo.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A mojo/mojo_converters.gypi View 1 2 3 1 chunk +140 lines, -0 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 1 chunk +0 lines, -132 lines 0 comments Download
M mojo/services/html_viewer/BUILD.gn View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/services/html_viewer/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/html_viewer/weblayertreeview_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/BUILD.gn View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/native_viewport/DEPS View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/native_viewport/gpu_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/native_viewport_impl.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/native_viewport/platform_viewport_x11.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/viewport_surface.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
D mojo/services/public/cpp/geometry/BUILD.gn View 1 chunk +0 lines, -29 lines 0 comments Download
D mojo/services/public/cpp/geometry/DEPS View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/services/public/cpp/geometry/geometry_type_converters.h View 1 chunk +0 lines, -74 lines 0 comments Download
D mojo/services/public/cpp/geometry/lib/geometry_type_converters.cc View 1 chunk +0 lines, -112 lines 0 comments Download
D mojo/services/public/cpp/geometry/mojo_geometry_export.h View 1 chunk +0 lines, -32 lines 0 comments Download
D mojo/services/public/cpp/input_events/BUILD.gn View 1 chunk +0 lines, -27 lines 0 comments Download
D mojo/services/public/cpp/input_events/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
D mojo/services/public/cpp/input_events/input_events_type_converters.h View 1 chunk +0 lines, -42 lines 0 comments Download
D mojo/services/public/cpp/input_events/lib/input_event_names.h View 1 chunk +0 lines, -46 lines 0 comments Download
D mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc View 1 chunk +0 lines, -245 lines 0 comments Download
D mojo/services/public/cpp/input_events/lib/mojo_extended_key_event_data.h View 1 chunk +0 lines, -39 lines 0 comments Download
D mojo/services/public/cpp/input_events/lib/mojo_extended_key_event_data.cc View 1 chunk +0 lines, -25 lines 0 comments Download
D mojo/services/public/cpp/input_events/mojo_input_events_export.h View 1 chunk +0 lines, -32 lines 0 comments Download
D mojo/services/public/cpp/surfaces/BUILD.gn View 1 chunk +0 lines, -35 lines 0 comments Download
D mojo/services/public/cpp/surfaces/DEPS View 1 chunk +0 lines, -11 lines 0 comments Download
D mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc View 1 chunk +0 lines, -577 lines 0 comments Download
D mojo/services/public/cpp/surfaces/lib/surfaces_utils.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D mojo/services/public/cpp/surfaces/mojo_surfaces_export.h View 1 chunk +0 lines, -32 lines 0 comments Download
D mojo/services/public/cpp/surfaces/surfaces_type_converters.h View 1 chunk +0 lines, -157 lines 0 comments Download
D mojo/services/public/cpp/surfaces/surfaces_utils.h View 1 chunk +0 lines, -27 lines 0 comments Download
D mojo/services/public/cpp/surfaces/tests/BUILD.gn View 1 chunk +0 lines, -27 lines 0 comments Download
D mojo/services/public/cpp/surfaces/tests/surface_unittest.cc View 1 chunk +0 lines, -460 lines 0 comments Download
M mojo/services/public/cpp/view_manager/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/public/cpp/view_manager/tests/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/surfaces/BUILD.gn View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/surfaces/DEPS View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/surfaces/surfaces_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/services/view_manager/BUILD.gn View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M mojo/services/view_manager/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/services/view_manager/connection_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/display_manager.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/view_manager/test_change_tracker.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/view_manager/view_manager_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/window_manager/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/window_manager/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/views/native_widget_view_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
msw
Hey James, can you take a first look and answer some Qs? https://codereview.chromium.org/640893003/diff/20001/mojo/converters/BUILD.gn File mojo/converters/BUILD.gn ...
6 years, 2 months ago (2014-10-09 19:23:09 UTC) #1
jamesr
You should leave the converters in separate components and subdirs, i.e. //mojo/converters/geometry/ //mojo/converters/input_events/ etc https://codereview.chromium.org/640893003/diff/20001/mojo/converters/BUILD.gn ...
6 years, 2 months ago (2014-10-09 19:30:54 UTC) #2
jamesr
https://codereview.chromium.org/640893003/diff/20001/mojo/converters/surfaces_utils.h File mojo/converters/surfaces_utils.h (right): https://codereview.chromium.org/640893003/diff/20001/mojo/converters/surfaces_utils.h#newcode5 mojo/converters/surfaces_utils.h:5: #ifndef MOJO_CONVERTERS_SURFACES_UTILS_H_ On 2014/10/09 19:23:09, msw wrote: > Should ...
6 years, 2 months ago (2014-10-09 19:34:57 UTC) #3
msw
Hey James, please take another look; thanks! https://codereview.chromium.org/640893003/diff/20001/mojo/converters/BUILD.gn File mojo/converters/BUILD.gn (right): https://codereview.chromium.org/640893003/diff/20001/mojo/converters/BUILD.gn#newcode6 mojo/converters/BUILD.gn:6: component("converters") { ...
6 years, 2 months ago (2014-10-10 00:28:59 UTC) #6
jamesr
lgtm excellent! my worry about having all the converters in one component is that if ...
6 years, 2 months ago (2014-10-10 01:06:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640893003/520001
6 years, 2 months ago (2014-10-10 02:12:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16837)
6 years, 2 months ago (2014-10-10 02:25:13 UTC) #11
msw
TBR'ing owners of DEPS referenced in this code move.
6 years, 2 months ago (2014-10-10 04:04:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/640893003/520001
6 years, 2 months ago (2014-10-10 04:04:40 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:520001)
6 years, 2 months ago (2014-10-10 04:06:08 UTC) #17
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 04:06:51 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/500dcd12ad141f66af11b7a1b371642bcb5fee98
Cr-Commit-Position: refs/heads/master@{#299055}

Powered by Google App Engine
This is Rietveld 408576698