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

Issue 839903002: Make more services' public interfaces flexible wrt location in repo. (Closed)

Created:
5 years, 11 months ago by blundell
Modified:
5 years, 11 months ago
Reviewers:
jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Make more services' public interfaces flexible wrt location in repo. This CL introduces a new pattern for making services' public interfaces flexible wrt location in the repo. A mojom target can now add import_dirs. Each service target adds an import dir of the parent directory of "<service>/public" and specifies its imports relative to that directory. This CL covers the interfaces for geometry, gpu, input_events, and native_viewport. R=jamesr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/47580b78677179f8138f6a848abad2cd2d6560b1

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Change to use import_dirs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -17 lines) Patch
M mojo/public/tools/bindings/mojom.gni View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M mojo/services/gpu/public/interfaces/BUILD.gn View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M mojo/services/gpu/public/interfaces/command_buffer.mojom View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/gpu/public/interfaces/gpu.mojom View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/input_events/public/interfaces/BUILD.gn View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M mojo/services/input_events/public/interfaces/input_events.mojom View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M mojo/services/native_viewport/public/interfaces/BUILD.gn View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M mojo/services/native_viewport/public/interfaces/native_viewport.mojom View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M mojo/services/surfaces/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/view_manager/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/window_manager/public/interfaces/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sky/services/testing/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
blundell
5 years, 11 months ago (2015-01-07 21:58:35 UTC) #1
blundell
5 years, 11 months ago (2015-01-07 21:58:44 UTC) #3
jamesr
https://codereview.chromium.org/839903002/diff/1/mojo/services/gpu/public/interfaces/gpu.mojom File mojo/services/gpu/public/interfaces/gpu.mojom (right): https://codereview.chromium.org/839903002/diff/1/mojo/services/gpu/public/interfaces/gpu.mojom#newcode7 mojo/services/gpu/public/interfaces/gpu.mojom:7: import "../../../geometry/public/interfaces/geometry.mojom"; this is really weird. It sorta makes ...
5 years, 11 months ago (2015-01-08 19:07:46 UTC) #4
blundell
https://codereview.chromium.org/839903002/diff/1/mojo/services/gpu/public/interfaces/gpu.mojom File mojo/services/gpu/public/interfaces/gpu.mojom (right): https://codereview.chromium.org/839903002/diff/1/mojo/services/gpu/public/interfaces/gpu.mojom#newcode7 mojo/services/gpu/public/interfaces/gpu.mojom:7: import "../../../geometry/public/interfaces/geometry.mojom"; On 2015/01/08 19:07:46, jamesr wrote: > this ...
5 years, 11 months ago (2015-01-09 10:08:07 UTC) #5
jamesr
I think include_dirs in a mojom() target can have only one meaning (the -I param ...
5 years, 11 months ago (2015-01-12 21:32:48 UTC) #6
blundell
As discussed offline, it's not possible to get at the public configs and loop over ...
5 years, 11 months ago (2015-01-13 02:02:23 UTC) #9
jamesr
lgtm
5 years, 11 months ago (2015-01-14 21:30:36 UTC) #10
blundell
5 years, 11 months ago (2015-01-14 23:26:00 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:80001) manually as
47580b78677179f8138f6a848abad2cd2d6560b1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698