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

Issue 973213003: Adds extension events for custom dictionary load/change. (Closed)

Created:
5 years, 9 months ago by Peter Wen
Modified:
5 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds extension events for custom dictionary load/change. Events exposed through inputMethodPrivate extension API. BUG=455026 Committed: https://crrev.com/38625727a94921d4773b267b4d5f4692dd688689 Cr-Commit-Position: refs/heads/master@{#320940}

Patch Set 1 #

Patch Set 2 : Add tests. #

Patch Set 3 : Remove accidentally added extensions file. #

Patch Set 4 : rebase #

Total comments: 10

Patch Set 5 : Use weakptr. #

Total comments: 2

Patch Set 6 : Remove extra braces. #

Total comments: 6

Patch Set 7 : Fix test and remove comments. #

Patch Set 8 : Always fire load event. #

Patch Set 9 : Updated tests. #

Patch Set 10 : Add async test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -31 lines) Patch
A chrome/browser/chromeos/extensions/dictionary_event_router.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/extensions/dictionary_event_router.cc View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_api.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_api.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/input_method_event_router.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_service.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/input_method_private.json View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/input_method/background.js View 1 2 3 4 5 6 7 8 9 2 chunks +87 lines, -22 lines 0 comments Download

Messages

Total messages: 32 (4 generated)
Peter Wen
Added the loaded/changed events for custom spelling dictionary in inputMethodPrivate. After this CL lands I ...
5 years, 9 months ago (2015-03-04 16:38:51 UTC) #2
please use gerrit instead
https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode31 chrome/browser/chromeos/extensions/dictionary_event_router.cc:31: if (dictionary_) { No need to save "dictionary_". SpellcheckService ...
5 years, 9 months ago (2015-03-05 21:42:52 UTC) #3
please use gerrit instead
https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode1 chrome/browser/chromeos/extensions/dictionary_event_router.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
5 years, 9 months ago (2015-03-05 21:43:33 UTC) #4
Peter Wen
PTAL. https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode1 chrome/browser/chromeos/extensions/dictionary_event_router.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
5 years, 9 months ago (2015-03-06 16:09:09 UTC) #5
please use gerrit instead
spellcheck_service.{cc,h} changes and usage of spellcheck API LGTM. R=groby for OWNERS review of spellcheck_service.{cc,h}. https://codereview.chromium.org/973213003/diff/60001/chrome/browser/chromeos/extensions/dictionary_event_router.cc ...
5 years, 9 months ago (2015-03-06 17:54:35 UTC) #7
Peter Wen
Thanks Rouslan! https://codereview.chromium.org/973213003/diff/80001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/80001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode29 chrome/browser/chromeos/extensions/dictionary_event_router.cc:29: if (service_) { On 2015/03/06 17:54:34, Rouslan ...
5 years, 9 months ago (2015-03-06 18:46:04 UTC) #8
groby-ooo-7-16
c/b/spellchecker syntactically LGTM rouslan: I assume you're the main reviewer and have reviewed that there's ...
5 years, 9 months ago (2015-03-06 18:55:19 UTC) #9
please use gerrit instead
On 2015/03/06 18:55:19, groby wrote: > c/b/spellchecker syntactically LGTM > > rouslan: I assume you're ...
5 years, 9 months ago (2015-03-06 19:03:56 UTC) #10
bshe
https://codereview.chromium.org/973213003/diff/100001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/100001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode21 chrome/browser/chromeos/extensions/dictionary_event_router.cc:21: context_); Not sure when spellcheck will be null. But ...
5 years, 9 months ago (2015-03-09 13:16:40 UTC) #11
Peter Wen
PTAL. :) https://codereview.chromium.org/973213003/diff/100001/chrome/browser/chromeos/extensions/dictionary_event_router.cc File chrome/browser/chromeos/extensions/dictionary_event_router.cc (right): https://codereview.chromium.org/973213003/diff/100001/chrome/browser/chromeos/extensions/dictionary_event_router.cc#newcode21 chrome/browser/chromeos/extensions/dictionary_event_router.cc:21: context_); On 2015/03/09 13:16:39, bshe wrote: > ...
5 years, 9 months ago (2015-03-09 14:56:08 UTC) #12
bshe
great! lgtm
5 years, 9 months ago (2015-03-09 17:00:08 UTC) #13
Peter Wen
@shuchen - ping for input_method_private.json OWNERS.
5 years, 9 months ago (2015-03-10 17:25:41 UTC) #14
groby-ooo-7-16
I suppose it's too late to ask why this is a private API?
5 years, 9 months ago (2015-03-10 23:37:05 UTC) #15
Shu Chen
Sorry I don't understand the flow of onDictionaryLoaded event. Can you please elaborate how onDictionaryLoaded ...
5 years, 9 months ago (2015-03-11 03:34:35 UTC) #16
Peter Wen
On 2015/03/10 23:37:05, groby wrote: > I suppose it's too late to ask why this ...
5 years, 9 months ago (2015-03-11 14:05:02 UTC) #17
Peter Wen
On 2015/03/11 03:34:35, Shu Chen wrote: > Sorry I don't understand the flow of onDictionaryLoaded ...
5 years, 9 months ago (2015-03-11 14:18:38 UTC) #18
groby-ooo-7-16
On 2015/03/11 14:18:38, Peter Wen wrote: > On 2015/03/11 03:34:35, Shu Chen wrote: > > ...
5 years, 9 months ago (2015-03-11 17:58:40 UTC) #19
Peter Wen
On 2015/03/11 17:58:40, groby wrote: > I still think this should be at least considered ...
5 years, 9 months ago (2015-03-11 22:34:16 UTC) #20
groby-ooo-7-16
Yeah, absolutely OK w/ private API as interim step. c/b/spellchecker still LGTM :)
5 years, 9 months ago (2015-03-12 01:01:36 UTC) #21
Shu Chen
On 2015/03/11 14:18:38, Peter Wen wrote: > On 2015/03/11 03:34:35, Shu Chen wrote: > > ...
5 years, 9 months ago (2015-03-12 01:18:29 UTC) #22
Peter Wen
On 2015/03/12 01:18:29, Shu Chen wrote: > Adding 2 APIs for 1 thing would make ...
5 years, 9 months ago (2015-03-12 21:48:44 UTC) #23
Shu Chen
On 2015/03/12 21:48:44, Peter Wen wrote: > On 2015/03/12 01:18:29, Shu Chen wrote: > > ...
5 years, 9 months ago (2015-03-13 07:14:49 UTC) #24
Peter Wen
On 2015/03/13 07:14:49, Shu Chen wrote: > Thanks for your elaboration. That makes a lot ...
5 years, 9 months ago (2015-03-13 21:02:21 UTC) #25
Peter Wen
On 2015/03/13 21:02:21, Peter Wen wrote: > On 2015/03/13 07:14:49, Shu Chen wrote: > > ...
5 years, 9 months ago (2015-03-16 21:18:23 UTC) #26
Shu Chen
lgtm
5 years, 9 months ago (2015-03-17 01:41:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973213003/180001
5 years, 9 months ago (2015-03-17 17:54:07 UTC) #30
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 9 months ago (2015-03-17 18:02:58 UTC) #31
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 18:03:48 UTC) #32
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/38625727a94921d4773b267b4d5f4692dd688689
Cr-Commit-Position: refs/heads/master@{#320940}

Powered by Google App Engine
This is Rietveld 408576698