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

Issue 1554983002: Build chrome.input.ime.* API in GN mode. (Closed)

Created:
4 years, 11 months ago by Azure Wei
Modified:
4 years, 11 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Build chrome.input.ime.* API in GN mode. This is to add input_ime_api_nonchromeos.cc to browser/extensions/BUILD.gn and list input_ime.json in schemas.gni for building in GN mode. As Chrome desktop needs not to provide system level IME switching UI, the InputImeEventRouter and InputImeAPI related functions are different on Chrome OS and non Chrome OS. Thus, class extensions::InputImeEventRouterBase is added to reuse the common codes, and implementation of InputImeAPI functions are divided into input_ime_api_chromos.cc/input_ime_api_nonchromeos.cc. BUG=573291, 517773 TEST=Verified bug not repro on local build. Committed: https://crrev.com/aa01dab35c1efc257cc41235fd91267e0b16bb98 Cr-Commit-Position: refs/heads/master@{#368788}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename chrome_browser_extensions_input_ime_nonchromeos_sources as chrome_browser_extensions_input_i… #

Patch Set 3 : #

Patch Set 4 : Remove class InputImeEventRouter from input_ime_api.h to input_ime_api_chromeos/nonchromeos.h #

Total comments: 24

Patch Set 5 : Add class extensions:InputImeEventRouterBase #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Total comments: 28

Patch Set 9 : Address Devlin's comments #

Patch Set 10 : Rebase on cl:1570723002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -5 lines) Patch
M chrome/browser/extensions/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gni View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/schemas.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (15 generated)
Azure Wei
Hi Shu Chen, Devlin, can you please review this cl? Thanks!
4 years, 11 months ago (2016-01-04 02:49:49 UTC) #3
Shu Chen
https://codereview.chromium.org/1554983002/diff/1/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/1554983002/diff/1/chrome/chrome_browser_extensions.gypi#newcode939 chrome/chrome_browser_extensions.gypi:939: 'chrome_browser_extensions_input_ime_nonchromeos_sources': [ "nonchromeos" is not accurate as these files ...
4 years, 11 months ago (2016-01-04 07:00:06 UTC) #4
Azure Wei
https://codereview.chromium.org/1554983002/diff/1/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/1554983002/diff/1/chrome/chrome_browser_extensions.gypi#newcode939 chrome/chrome_browser_extensions.gypi:939: 'chrome_browser_extensions_input_ime_nonchromeos_sources': [ On 2016/01/04 07:00:06, Shu Chen (OOO till ...
4 years, 11 months ago (2016-01-04 07:41:26 UTC) #5
Devlin
I don't speak gn :/ punt to rockot@.
4 years, 11 months ago (2016-01-04 17:24:07 UTC) #7
Ken Rockot(use gerrit already)
lgtm
4 years, 11 months ago (2016-01-04 17:30:15 UTC) #8
Shu Chen
lgtm
4 years, 11 months ago (2016-01-05 01:44:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1554983002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1554983002/20001
4 years, 11 months ago (2016-01-05 02:23:01 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/85324)
4 years, 11 months ago (2016-01-05 02:34:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1554983002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1554983002/40001
4 years, 11 months ago (2016-01-05 02:40:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/32067)
4 years, 11 months ago (2016-01-05 03:14:02 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1554983002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1554983002/60001
4 years, 11 months ago (2016-01-05 06:38:27 UTC) #20
Azure Wei
Hi Ken Rockot, Devlin and Shu Chen, can you please review this cl again? Thank ...
4 years, 11 months ago (2016-01-05 07:57:22 UTC) #22
Shu Chen
https://codereview.chromium.org/1554983002/diff/60001/chrome/browser/extensions/api/input_ime/input_ime_api.cc File chrome/browser/extensions/api/input_ime/input_ime_api.cc (right): https://codereview.chromium.org/1554983002/diff/60001/chrome/browser/extensions/api/input_ime/input_ime_api.cc#newcode189 chrome/browser/extensions/api/input_ime/input_ime_api.cc:189: bool InputImeKeyEventHandledFunction::RunAsync() { nit: add blank line above. also, ...
4 years, 11 months ago (2016-01-05 15:10:48 UTC) #23
Ken Rockot(use gerrit already)
Just for future reference, I think this should probably have been two separate CLs. The ...
4 years, 11 months ago (2016-01-05 16:51:08 UTC) #24
Devlin
https://codereview.chromium.org/1554983002/diff/60001/chrome/browser/extensions/api/input_ime/input_ime_api.h File chrome/browser/extensions/api/input_ime/input_ime_api.h (right): https://codereview.chromium.org/1554983002/diff/60001/chrome/browser/extensions/api/input_ime/input_ime_api.h#newcode92 chrome/browser/extensions/api/input_ime/input_ime_api.h:92: class InputImeKeyEventHandledFunction : public AsyncExtensionFunction { Why was this ...
4 years, 11 months ago (2016-01-05 18:39:07 UTC) #25
Azure Wei
A new class extensions::InputImeEventRouterBase was added to abstract class InputImeEventRouter on different platforms. InputImeEventRouterBase was ...
4 years, 11 months ago (2016-01-06 06:53:47 UTC) #26
Shu Chen
https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h File chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h (right): https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h#newcode157 chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h:157: ~InputImeEventRouter(); ~InputImeEventRouter() override; https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h File chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h (right): https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h#newcode22 chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.h:22: ...
4 years, 11 months ago (2016-01-06 07:00:08 UTC) #27
Azure Wei
https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h File chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h (right): https://codereview.chromium.org/1554983002/diff/100001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h#newcode157 chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.h:157: ~InputImeEventRouter(); On 2016/01/06 07:00:07, Shu Chen wrote: > ~InputImeEventRouter() ...
4 years, 11 months ago (2016-01-06 08:00:01 UTC) #28
Shu Chen
lgtm https://codereview.chromium.org/1554983002/diff/120001/chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h File chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h (right): https://codereview.chromium.org/1554983002/diff/120001/chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h#newcode48 chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h:48: protected: nit: the order should be public/protected/private.
4 years, 11 months ago (2016-01-06 08:02:22 UTC) #29
Azure Wei
https://codereview.chromium.org/1554983002/diff/120001/chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h File chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h (right): https://codereview.chromium.org/1554983002/diff/120001/chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h#newcode48 chrome/browser/extensions/api/input_ime/input_ime_event_router_base.h:48: protected: On 2016/01/06 08:02:22, Shu Chen wrote: > nit: ...
4 years, 11 months ago (2016-01-06 09:57:19 UTC) #30
Devlin
https://codereview.chromium.org/1554983002/diff/140001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc File chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc (right): https://codereview.chromium.org/1554983002/diff/140001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc#newcode722 chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc:722: extensions::InputComponents::GetInputComponents(extension); no need for extensions:: prefix. https://codereview.chromium.org/1554983002/diff/140001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc#newcode735 chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc:735: if ...
4 years, 11 months ago (2016-01-07 23:08:29 UTC) #32
Azure Wei
https://codereview.chromium.org/1554983002/diff/140001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc File chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc (right): https://codereview.chromium.org/1554983002/diff/140001/chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc#newcode722 chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc:722: extensions::InputComponents::GetInputComponents(extension); On 2016/01/07 23:08:29, Devlin wrote: > no need ...
4 years, 11 months ago (2016-01-08 06:40:56 UTC) #33
Azure Wei
On 2016/01/05 16:51:08, Ken Rockot wrote: > Just for future reference, I think this should ...
4 years, 11 months ago (2016-01-08 07:44:32 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1554983002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1554983002/180001
4 years, 11 months ago (2016-01-12 02:50:40 UTC) #37
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-12 03:28:11 UTC) #39
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 03:29:05 UTC) #41
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/aa01dab35c1efc257cc41235fd91267e0b16bb98
Cr-Commit-Position: refs/heads/master@{#368788}

Powered by Google App Engine
This is Rietveld 408576698