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

Issue 2636073002: Create mojom and StructTraits for ui/display/types/display_mode.cc (Closed)

Created:
3 years, 11 months ago by thanhph
Modified:
3 years, 10 months ago
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create mojom and StructTraits for ui/display/types/display_mode.cc BUG=680992 Review-Url: https://codereview.chromium.org/2636073002 Cr-Commit-Position: refs/heads/master@{#447394} Committed: https://chromium.googlesource.com/chromium/src/+/bd13a9f7838046525e55350a7e491e014235aea1

Patch Set 1 #

Total comments: 8

Patch Set 2 : Clean up. use IPC mojom struct defined in display_mode_proxy.mojom. #

Patch Set 3 : fix build target/deps #

Patch Set 4 : clean up build.gn, assign out to deserialized values. #

Patch Set 5 : build breaks #

Patch Set 6 : convert mojo type to ui::DisplayMode_Params instead. #

Total comments: 38

Patch Set 7 : Refactor code. Add includes. Rename to add other struct traits in the future. #

Patch Set 8 : undo deletion of includes in ui/ozone/common/BUILD.gn #

Total comments: 16

Patch Set 9 : Refactor file names/ build targets #

Patch Set 10 : fix comment #

Total comments: 2

Patch Set 11 : Move /ui/ozone/common/mojo/ to /ui/display/types/mojo/ and Add DEP so including ozone_gpu_message_p… #

Patch Set 12 : remove ui/display/types/mojo/DEPS #

Patch Set 13 : Remove /ui/ozone/common dependencies. #

Patch Set 14 : Dont need to make changes in ui/ozone/common/BUILD.gn. #

Total comments: 28

Patch Set 15 : add security owner for *.typemap #

Patch Set 16 : Change structure not to use display_mode_mojo.(cc|h). Instead, use friend class in display_mode.h. #

Patch Set 17 : Change structure not to use display_mode_mojo.(cc|h). Instead, use friend class in display_mode.h. #

Total comments: 15

Patch Set 18 : Fix format/dependecies/nits. #

Patch Set 19 : add dep on mojo/public/cpp/bindings:struct_traits #

Total comments: 1

Patch Set 20 : add spaces for easy reading. #

Patch Set 21 : Merge with master after cl 2640243004 landed. #

Patch Set 22 : size_ is initialized by default. #

Total comments: 8

Patch Set 23 : use unique pointer for struct trait mojom #

Total comments: 2

Patch Set 24 : remove expect_true in void function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -1 line) Patch
M ui/display/mojo/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A ui/display/mojo/display_mode.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +14 lines, -0 lines 0 comments Download
A ui/display/mojo/display_mode.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +14 lines, -0 lines 0 comments Download
A ui/display/mojo/display_mode_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +45 lines, -0 lines 0 comments Download
M ui/display/mojo/display_struct_traits_test.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M ui/display/mojo/display_struct_traits_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +24 lines, -0 lines 0 comments Download
M ui/display/mojo/typemaps.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 112 (80 generated)
thanhph1
3 years, 11 months ago (2017-01-16 22:57:03 UTC) #3
kylechar
https://codereview.chromium.org/2636073002/diff/1/ui/ozone/common/gpu/ozone_gpu_message_params.h File ui/ozone/common/gpu/ozone_gpu_message_params.h (left): https://codereview.chromium.org/2636073002/diff/1/ui/ozone/common/gpu/ozone_gpu_message_params.h#oldcode24 ui/ozone/common/gpu/ozone_gpu_message_params.h:24: DisplayMode_Params(); Not sure why you removed these but you ...
3 years, 11 months ago (2017-01-16 23:08:25 UTC) #4
thanhph1
https://codereview.chromium.org/2636073002/diff/1/ui/ozone/common/gpu/ozone_gpu_message_params.h File ui/ozone/common/gpu/ozone_gpu_message_params.h (left): https://codereview.chromium.org/2636073002/diff/1/ui/ozone/common/gpu/ozone_gpu_message_params.h#oldcode24 ui/ozone/common/gpu/ozone_gpu_message_params.h:24: DisplayMode_Params(); On 2017/01/16 23:08:24, kylechar wrote: > Not sure ...
3 years, 11 months ago (2017-01-17 16:47:59 UTC) #5
kylechar
https://codereview.chromium.org/2636073002/diff/100001/ui/ozone/BUILD.gn File ui/ozone/BUILD.gn (right): https://codereview.chromium.org/2636073002/diff/100001/ui/ozone/BUILD.gn#newcode234 ui/ozone/BUILD.gn:234: test("ozone_struct_traits_unittests") { The test target should probably be in ...
3 years, 11 months ago (2017-01-17 17:19:27 UTC) #11
thanhph1
https://codereview.chromium.org/2636073002/diff/100001/ui/ozone/BUILD.gn File ui/ozone/BUILD.gn (right): https://codereview.chromium.org/2636073002/diff/100001/ui/ozone/BUILD.gn#newcode234 ui/ozone/BUILD.gn:234: test("ozone_struct_traits_unittests") { On 2017/01/17 17:19:26, kylechar wrote: > The ...
3 years, 11 months ago (2017-01-17 20:19:06 UTC) #13
kylechar
https://codereview.chromium.org/2636073002/diff/80002/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2636073002/diff/80002/BUILD.gn#newcode381 BUILD.gn:381: "//ui/ozone/common/mojo:ozone_struct_traits_unittests", Only include this target. It has a dependency ...
3 years, 11 months ago (2017-01-17 21:39:47 UTC) #20
kylechar
Oh also, you aren't adding the test target to any trybots, so it won't be ...
3 years, 11 months ago (2017-01-17 21:40:42 UTC) #21
thanhph1
As discussed, we can add unit test to the try bot in the next cl. ...
3 years, 11 months ago (2017-01-17 22:30:30 UTC) #24
kylechar
lgtm.
3 years, 11 months ago (2017-01-18 15:24:34 UTC) #30
thanhph1
@tsepez: Please review my mojom struct trait files for security.
3 years, 11 months ago (2017-01-18 16:46:55 UTC) #32
thanhph1
jam@chromium.org: Hi Jon, Please review changes in BUILD.gn mojo/public/tools/bindings/chromium_bindings_configuration.gni Thanks, Thanh.
3 years, 11 months ago (2017-01-18 16:56:02 UTC) #34
Tom Sepez
lgtm
3 years, 11 months ago (2017-01-18 16:59:31 UTC) #36
thanhph1
+kylechar, +rjkroege: I accidentally removed your names. @rjkroege: Please review my cl.
3 years, 11 months ago (2017-01-20 18:49:07 UTC) #38
rjkroege
I don't think this code is in the right place. https://codereview.chromium.org/2636073002/diff/170001/ui/ozone/common/mojo/BUILD.gn File ui/ozone/common/mojo/BUILD.gn (right): https://codereview.chromium.org/2636073002/diff/170001/ui/ozone/common/mojo/BUILD.gn#newcode1 ...
3 years, 11 months ago (2017-01-20 18:56:13 UTC) #39
rjkroege
per email thread: I think that these files belong in ui/display/type/mojo. On 2017/01/20 18:56:13, rjkroege ...
3 years, 11 months ago (2017-01-23 19:00:38 UTC) #40
kylechar
Based on the change of plan not lgtm. Also can you fix the CL description. ...
3 years, 10 months ago (2017-01-24 21:15:07 UTC) #54
thanhph1
https://codereview.chromium.org/2636073002/diff/250001/ui/display/BUILD.gn File ui/display/BUILD.gn (right): https://codereview.chromium.org/2636073002/diff/250001/ui/display/BUILD.gn#newcode33 ui/display/BUILD.gn:33: "mojo/display_mode_mojo.cc", On 2017/01/24 21:15:07, kylechar wrote: > Move the ...
3 years, 10 months ago (2017-01-25 16:26:17 UTC) #57
kylechar
https://codereview.chromium.org/2636073002/diff/310001/ui/display/mojo/OWNERS File ui/display/mojo/OWNERS (right): https://codereview.chromium.org/2636073002/diff/310001/ui/display/mojo/OWNERS#newcode5 ui/display/mojo/OWNERS:5: per-file *.typemap=set noparent Just curious, why did you add ...
3 years, 10 months ago (2017-01-25 16:59:45 UTC) #58
thanhph1
Thanks Kyle. Please review my cl! https://codereview.chromium.org/2636073002/diff/310001/ui/display/mojo/OWNERS File ui/display/mojo/OWNERS (right): https://codereview.chromium.org/2636073002/diff/310001/ui/display/mojo/OWNERS#newcode5 ui/display/mojo/OWNERS:5: per-file *.typemap=set noparent ...
3 years, 10 months ago (2017-01-25 20:28:40 UTC) #59
kylechar
lgtm https://codereview.chromium.org/2636073002/diff/350001/ui/display/mojo/OWNERS File ui/display/mojo/OWNERS (right): https://codereview.chromium.org/2636073002/diff/350001/ui/display/mojo/OWNERS#newcode2 ui/display/mojo/OWNERS:2: per-file *_struct_traits*.*=file://ipc/SECURITY_OWNERS nit: spaces between the entries make ...
3 years, 10 months ago (2017-01-25 21:26:46 UTC) #66
rjkroege
https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.cc File ui/display/types/display_mode.cc (right): https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.cc#newcode23 ui/display/types/display_mode.cc:23: DisplayMode::~DisplayMode() = default; reasoning? https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.h File ui/display/types/display_mode.h (right): https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.h#newcode29 ...
3 years, 10 months ago (2017-01-27 18:54:55 UTC) #85
kylechar
https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.h File ui/display/types/display_mode.h (right): https://codereview.chromium.org/2636073002/diff/430001/ui/display/types/display_mode.h#newcode44 ui/display/types/display_mode.h:44: gfx::Size size_; On 2017/01/27 18:54:55, rjkroege wrote: > I ...
3 years, 10 months ago (2017-01-27 19:34:18 UTC) #86
rjkroege
The duplication seems regrettable. lgtm
3 years, 10 months ago (2017-01-27 20:12:54 UTC) #87
thanhph1
Hi Rob, I leave out changes in display_mode.(cc|h) and use unique pointer as discussed with ...
3 years, 10 months ago (2017-01-27 21:12:23 UTC) #92
kylechar
new changes lgtm
3 years, 10 months ago (2017-01-27 21:13:44 UTC) #94
kylechar
I lied, one small thing to fix. https://codereview.chromium.org/2636073002/diff/530001/ui/display/mojo/display_struct_traits_unittest.cc File ui/display/mojo/display_struct_traits_unittest.cc (right): https://codereview.chromium.org/2636073002/diff/530001/ui/display/mojo/display_struct_traits_unittest.cc#newcode97 ui/display/mojo/display_struct_traits_unittest.cc:97: EXPECT_TRUE(proxy->EchoDisplayMode(input->Clone(), &output)); ...
3 years, 10 months ago (2017-01-27 21:15:19 UTC) #96
thanhph1
Good catch Kyle, thanks! Thanh. https://codereview.chromium.org/2636073002/diff/530001/ui/display/mojo/display_struct_traits_unittest.cc File ui/display/mojo/display_struct_traits_unittest.cc (right): https://codereview.chromium.org/2636073002/diff/530001/ui/display/mojo/display_struct_traits_unittest.cc#newcode97 ui/display/mojo/display_struct_traits_unittest.cc:97: EXPECT_TRUE(proxy->EchoDisplayMode(input->Clone(), &output)); On 2017/01/27 ...
3 years, 10 months ago (2017-01-27 21:18:32 UTC) #99
thanhph1
oshima@chromium.org: Please review changes in ui/display. Thanks, Thanh.
3 years, 10 months ago (2017-01-27 23:00:27 UTC) #103
rjkroege
still lgtm. thanks
3 years, 10 months ago (2017-01-27 23:07:25 UTC) #104
oshima
lgtm
3 years, 10 months ago (2017-01-31 21:09:05 UTC) #105
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/2636073002/550001
3 years, 10 months ago (2017-01-31 21:16:14 UTC) #108
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 01:12:24 UTC) #112
Message was sent while issue was closed.
Committed patchset #24 (id:550001) as
https://chromium.googlesource.com/chromium/src/+/bd13a9f7838046525e55350a7e49...

Powered by Google App Engine
This is Rietveld 408576698