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

Issue 889323003: Split ui/base/ime into a new component (Closed)

Created:
5 years, 10 months ago by spang
Modified:
5 years, 10 months ago
Reviewers:
Nico, jam, sky, Yuki
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, mlamouri+watch-content_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, mkwst+moarreviews-shell_chromium.org, James Su, stevenjb+watch_chromium.org, jochen+watch_chromium.org, yukishiino+watch_chromium.org, Shu Chen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split ui/base/ime into a new component (reland with windows GN fix) The IME code in ui/base/ime depends on ui/ozone to support keyboard control (via the InputController interface). This dependency is currently missing from the build. Unfortunately, we cannot simply add this dependency, because ui/ozone depends on code from ui/base/cursor and ui/base/resource (for cursor bitmaps). Break this cycle by componentizing ui/base/ime & add a dependency from the new ui/base/ime component to ui/ozone. This also helps clean things up a bit because iOS builds ui/base but not ui/base/ime. So there is already a fault line here. The handful of IME tests are left as part of ui_base_unittests. BUG=445627 TEST=gn gen out_gn_ozone --args='os="chromeos" use_ozone=true is_component_build=true' && ninja -C out_gn_ozone chrome ozone_unittests (along with other needed changes) TBR=jam Committed: https://crrev.com/2321ca1b99c1a8e9a90e48a9cd50f6446a7e5e82 Cr-Commit-Position: refs/heads/master@{#314815} Committed: https://crrev.com/1c36facc53f4a0038f2e2e482c78a65438cc8ec4 Cr-Commit-Position: refs/heads/master@{#314860}

Patch Set 1 #

Patch Set 2 : rebase and correct problems identified by tryjobs #

Patch Set 3 : correct GYP paths #

Total comments: 14

Patch Set 4 : comments from thakis@ #

Patch Set 5 : window GN build fix #

Patch Set 6 : fix cros x11 GN build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+585 lines, -381 lines) Patch
M ash/BUILD.gn View 1 3 chunks +3 lines, -0 lines 0 comments Download
M ash/ash.gyp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/libgtk2ui.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/BUILD.gn View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/content_shell.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M content/shell/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M content/test/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M extensions/shell/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 3 chunks +3 lines, -0 lines 0 comments Download
M ui/base/BUILD.gn View 1 4 chunks +6 lines, -138 lines 0 comments Download
A ui/base/ime/BUILD.gn View 1 2 3 4 5 1 chunk +180 lines, -0 lines 0 comments Download
M ui/base/ime/candidate_window.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/base/ime/chromeos/character_composer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/component_extension_ime_manager.h View 4 chunks +5 lines, -5 lines 0 comments Download
M ui/base/ime/chromeos/composition_text.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/extension_ime_util.h View 1 2 3 2 chunks +20 lines, -20 lines 0 comments Download
M ui/base/ime/chromeos/fake_ime_keyboard.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/chromeos/fake_input_method_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/ime_bridge.h View 5 chunks +5 lines, -5 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard.h View 3 chunks +5 lines, -5 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard_ozone.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/ime_keyboard_x11.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/ime_keymap.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M ui/base/ime/chromeos/input_method_descriptor.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/input_method_manager.h View 3 chunks +5 lines, -5 lines 0 comments Download
M ui/base/ime/chromeos/input_method_whitelist.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/mock_ime_candidate_window_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/mock_ime_engine_handler.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M ui/base/ime/chromeos/mock_ime_input_context_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/composition_text.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/composition_text_util_pango.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/dummy_input_method_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/infolist_entry.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_auralinux.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/input_method_base.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M ui/base/ime/input_method_chromeos.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/input_method_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_factory.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/ime/input_method_initializer.h View 1 chunk +5 lines, -5 lines 0 comments Download
M ui/base/ime/input_method_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/input_method_minimal.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/input_method_observer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_win.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/linux/linux_input_method_context.h View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/base/ime/linux/linux_input_method_context_factory.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/mock_input_method.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M ui/base/ime/remote_input_method_delegate_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/remote_input_method_win.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/ime/text_input_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/text_input_focus_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
A ui/base/ime/ui_base_ime.gyp View 1 2 3 1 chunk +186 lines, -0 lines 0 comments Download
A ui/base/ime/ui_base_ime_export.h View 1 chunk +34 lines, -0 lines 0 comments Download
M ui/base/ime/win/imm32_manager.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/ime/win/tsf_input_scope.h View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M ui/base/ui_base.gyp View 1 5 chunks +3 lines, -122 lines 0 comments Download
M ui/base/ui_base_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/chromeos/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/chromeos/ui_chromeos.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/keyboard/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/BUILD.gn View 1 3 chunks +3 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/wm/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/wm/wm.gyp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (7 generated)
spang
5 years, 10 months ago (2015-02-04 20:11:46 UTC) #2
Nico
Thanks much for doing this. Mostly lgtm. I'm confused that you're adding a dep on ...
5 years, 10 months ago (2015-02-04 20:29:36 UTC) #3
spang
https://codereview.chromium.org/889323003/diff/40001/extensions/shell/BUILD.gn File extensions/shell/BUILD.gn (right): https://codereview.chromium.org/889323003/diff/40001/extensions/shell/BUILD.gn#newcode53 extensions/shell/BUILD.gn:53: "//ui/base", On 2015/02/04 20:29:35, Nico wrote: > why is ...
5 years, 10 months ago (2015-02-04 21:14:26 UTC) #5
spang
On 2015/02/04 20:29:36, Nico wrote: > Thanks much for doing this. Mostly lgtm. I'm confused ...
5 years, 10 months ago (2015-02-04 21:14:42 UTC) #6
Nico
lgtm! https://codereview.chromium.org/889323003/diff/40001/ui/base/ime/BUILD.gn File ui/base/ime/BUILD.gn (right): https://codereview.chromium.org/889323003/diff/40001/ui/base/ime/BUILD.gn#newcode94 ui/base/ime/BUILD.gn:94: "text_input_type.h", On 2015/02/04 21:14:26, spang wrote: > On ...
5 years, 10 months ago (2015-02-04 21:17:43 UTC) #7
tfarina
https://codereview.chromium.org/889323003/diff/40001/ui/base/ime/BUILD.gn File ui/base/ime/BUILD.gn (right): https://codereview.chromium.org/889323003/diff/40001/ui/base/ime/BUILD.gn#newcode94 ui/base/ime/BUILD.gn:94: "text_input_type.h", On 2015/02/04 21:14:26, spang wrote: > On 2015/02/04 ...
5 years, 10 months ago (2015-02-04 21:21:59 UTC) #8
spang
sky for ui/ +jam for extensions/ & content/
5 years, 10 months ago (2015-02-04 21:29:10 UTC) #10
Nico
On 2015/02/04 21:29:10, spang wrote: > sky for ui/ I'm in ui/OWNERS, you're good here. ...
5 years, 10 months ago (2015-02-04 21:35:05 UTC) #11
spang
On 2015/02/04 21:35:05, Nico wrote: > On 2015/02/04 21:29:10, spang wrote: > > sky for ...
5 years, 10 months ago (2015-02-04 21:59:46 UTC) #12
sky
ash LGTM
5 years, 10 months ago (2015-02-05 03:12:19 UTC) #13
Nico
(I think this is simple enough that you can tbr content and extensions) On Feb ...
5 years, 10 months ago (2015-02-05 03:27:35 UTC) #14
Yuki
+cc: shuchen Just FYI. We may want to remove the dependency from ui/base/ime to ui/ozone ...
5 years, 10 months ago (2015-02-05 05:19:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889323003/60001
5 years, 10 months ago (2015-02-05 15:41:13 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-05 15:46:08 UTC) #19
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/2321ca1b99c1a8e9a90e48a9cd50f6446a7e5e82 Cr-Commit-Position: refs/heads/master@{#314815}
5 years, 10 months ago (2015-02-05 15:47:06 UTC) #20
ccameron
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/895363005/ by ccameron@chromium.org. ...
5 years, 10 months ago (2015-02-05 16:27:04 UTC) #21
spang
On 2015/02/05 16:27:04, ccameron wrote: > A revert of this CL (patchset #4 id:60001) has ...
5 years, 10 months ago (2015-02-05 16:30:50 UTC) #22
tfarina
On 2015/02/05 16:30:50, spang wrote: > On 2015/02/05 16:27:04, ccameron wrote: > > A revert ...
5 years, 10 months ago (2015-02-05 16:37:23 UTC) #23
tfarina
On 2015/02/05 16:37:23, tfarina wrote: > On 2015/02/05 16:30:50, spang wrote: > > On 2015/02/05 ...
5 years, 10 months ago (2015-02-05 16:38:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889323003/100001
5 years, 10 months ago (2015-02-05 19:50:08 UTC) #27
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-05 19:55:42 UTC) #28
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 19:57:26 UTC) #29
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1c36facc53f4a0038f2e2e482c78a65438cc8ec4
Cr-Commit-Position: refs/heads/master@{#314860}

Powered by Google App Engine
This is Rietveld 408576698