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

Issue 2626093004: EnumTraits for base::i18n::TextDirection. (Closed)

Created:
3 years, 11 months ago by Hadi
Modified:
3 years, 11 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, rouslan+autofill_chromium.org, jam, sebsg+autofillwatch_chromium.org, viettrungluu+watch_chromium.org, browser-components-watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, darin (slow to review), sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

EnumTraits for base::i18n::TextDirection. Moves EnumTraits for base::i18n::TextDirection from autofill_types.mojom to mojo/common/rtl.mojom so IME can also use it. This also removes TEXT_DIRECTION_NUM_DIRECTIONS and introduces TEXT_DIRECTION_MAX = LEFT_TO_RIGHT, to avoid having an extra unnecessary case in switch statements on TextDirection. BUG=NONE Review-Url: https://codereview.chromium.org/2626093004 Cr-Commit-Position: refs/heads/master@{#443736} Committed: https://chromium.googlesource.com/chromium/src/+/6c5bf8fac0cd765eb4152cb3b7c8f080d02bce2f

Patch Set 1 #

Patch Set 2 : cleanup. #

Patch Set 3 : fixed analyze errors. #

Patch Set 4 : cleanup. #

Patch Set 5 : Fixed compile error. #

Total comments: 2

Patch Set 6 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -64 lines) Patch
M base/i18n/rtl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/common/autofill_driver.mojom View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M components/autofill/content/common/autofill_param_traits_macros.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/common/autofill_types.mojom View 1 2 3 4 5 3 chunks +2 lines, -9 lines 0 comments Download
M components/autofill/content/common/autofill_types.typemap View 1 chunk +0 lines, -1 line 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.h View 2 chunks +1 line, -8 lines 0 comments Download
M components/autofill/content/common/autofill_types_struct_traits.cc View 2 chunks +1 line, -42 lines 0 comments Download
M mojo/common/BUILD.gn View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M mojo/common/common_custom_types_struct_traits.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M mojo/common/common_custom_types_struct_traits.cc View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
M mojo/common/common_custom_types_unittest.cc View 2 chunks +31 lines, -0 lines 0 comments Download
M mojo/common/test_common_custom_types.mojom View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
A mojo/common/text_direction.mojom View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A mojo/common/text_direction.typemap View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M mojo/common/typemaps.gni View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (23 generated)
Hadi
mathp@ please review components/autofill/*. yzshen@ please review mojo/*. tsepez@ please review *.mojom and *_struct_traits.* Thanks
3 years, 11 months ago (2017-01-12 20:02:32 UTC) #3
Hadi
Adding jshin@ for base/i18n/rtl.h. Thanks.
3 years, 11 months ago (2017-01-12 22:39:32 UTC) #18
Hadi
Since jshin@ seems to be OOO, adding dcheng@ for base/*. Thanks.
3 years, 11 months ago (2017-01-12 22:57:06 UTC) #20
dcheng
mojo, struct traits, and base lgtm
3 years, 11 months ago (2017-01-12 23:04:12 UTC) #21
Tom Sepez
mojom LGTM
3 years, 11 months ago (2017-01-12 23:30:38 UTC) #22
Mathieu
autofill lgtm, nice!
3 years, 11 months ago (2017-01-13 00:41:47 UTC) #25
yzshen1
LGTM with one comment https://codereview.chromium.org/2626093004/diff/80001/mojo/common/rtl.mojom File mojo/common/rtl.mojom (right): https://codereview.chromium.org/2626093004/diff/80001/mojo/common/rtl.mojom#newcode1 mojo/common/rtl.mojom:1: // Copyright 2017 The Chromium ...
3 years, 11 months ago (2017-01-13 21:00:45 UTC) #26
Hadi
https://codereview.chromium.org/2626093004/diff/80001/mojo/common/rtl.mojom File mojo/common/rtl.mojom (right): https://codereview.chromium.org/2626093004/diff/80001/mojo/common/rtl.mojom#newcode1 mojo/common/rtl.mojom:1: // Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 11 months ago (2017-01-13 22:07:34 UTC) #27
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/2626093004/100001
3 years, 11 months ago (2017-01-13 22:08:22 UTC) #30
jungshik at Google
LGTM
3 years, 11 months ago (2017-01-13 23:10:15 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 00:09:02 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6c5bf8fac0cd765eb4152cb3b7c8...

Powered by Google App Engine
This is Rietveld 408576698