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

Issue 10704073: Plumb listenerIDs correctly for events that clobber chrome.Event.prototype.dispatch. (Closed)

Created:
8 years, 5 months ago by koz (OOO until 15th September)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, not at google - send to devlin, Mihai Parparita -not on Chrome
Visibility:
Public.

Description

Make eventArgumentMassagers asynchronous so custom bindings don't need to override chrome.Event.prototype.dispatch. BUG=121479 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146038 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146289

Patch Set 1 #

Patch Set 2 : make event dispatching asynchronous #

Patch Set 3 : nit #

Patch Set 4 : nit #

Total comments: 10

Patch Set 5 : respond to comments #

Patch Set 6 : fix typo #

Patch Set 7 : fix typo #

Patch Set 8 : respond to comments #

Patch Set 9 : respond to commens #

Total comments: 2

Patch Set 10 : fix tts #

Patch Set 11 : fix tts #

Total comments: 4

Patch Set 12 : respond to comments #

Patch Set 13 : rebase #

Patch Set 14 : fix compile #

Patch Set 15 : fix file_browser_handler_custom_bindings.js argument massager #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -146 lines) Patch
M chrome/common/extensions/api/input_ime.json View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_context_set.cc View 1 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/renderer/extensions/event_unittest.cc View 1 2 3 4 5 6 7 3 chunks +27 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +32 lines, -1 line 0 comments Download
M chrome/renderer/module_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/module_system.cc View 1 2 3 4 5 6 4 chunks +16 lines, -7 lines 0 comments Download
M chrome/renderer/resources/extensions/event.js View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +41 lines, -38 lines 0 comments Download
M chrome/renderer/resources/extensions/experimental.app_custom_bindings.js View 1 2 3 4 5 6 7 1 chunk +47 lines, -47 lines 0 comments Download
M chrome/renderer/resources/extensions/file_browser_handler_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/input.ime_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -23 lines 0 comments Download
M chrome/renderer/resources/extensions/omnibox_custom_bindings.js View 1 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/renderer/resources/extensions/tts_engine_custom_bindings.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/test/base/module_system_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
koz (OOO until 15th September)
This change makes dispatchJSON() dispatch events asynchronously, which some APIs bindings are doing now by ...
8 years, 5 months ago (2012-07-03 04:29:42 UTC) #1
benwells
lgtm. I don't know enough about this to know if it matters but Event.dispatch is ...
8 years, 5 months ago (2012-07-03 07:38:18 UTC) #2
not at google - send to devlin
drive-by of DCHECK stuff https://chromiumcodereview.appspot.com/10704073/diff/5001/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10704073/diff/5001/chrome/renderer/extensions/extension_dispatcher.cc#newcode224 chrome/renderer/extensions/extension_dispatcher.cc:224: error_message = *v8::String::AsciiValue(args[1]); Is there ...
8 years, 5 months ago (2012-07-03 07:47:04 UTC) #3
benwells
https://chromiumcodereview.appspot.com/10704073/diff/5001/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10704073/diff/5001/chrome/renderer/extensions/extension_dispatcher.cc#newcode221 chrome/renderer/extensions/extension_dispatcher.cc:221: bool check_value = args[0]->BooleanValue(); Oh yeah, forgot to ask: ...
8 years, 5 months ago (2012-07-03 23:34:28 UTC) #4
koz (OOO until 15th September)
zork, is it okay to delete that validation stuff in experimental.input.ime_custom_bindings.js? Parts of it are ...
8 years, 5 months ago (2012-07-05 04:38:31 UTC) #5
Zachary Kuznia
On 2012/07/05 04:38:31, koz wrote: > zork, is it okay to delete that validation stuff ...
8 years, 5 months ago (2012-07-05 08:30:12 UTC) #6
koz (OOO until 15th September)
On 2012/07/05 08:30:12, Zachary Kuznia wrote: > On 2012/07/05 04:38:31, koz wrote: > > zork, ...
8 years, 5 months ago (2012-07-06 04:31:29 UTC) #7
Zachary Kuznia
lgtm On Fri, Jul 6, 2012 at 1:31 PM, <koz@chromium.org> wrote: > On 2012/07/05 08:30:12, ...
8 years, 5 months ago (2012-07-06 06:05:48 UTC) #8
benwells
still lgtm, with nit. https://chromiumcodereview.appspot.com/10704073/diff/7012/chrome/renderer/resources/extensions/input.ime_custom_bindings.js File chrome/renderer/resources/extensions/input.ime_custom_bindings.js (right): https://chromiumcodereview.appspot.com/10704073/diff/7012/chrome/renderer/resources/extensions/input.ime_custom_bindings.js#newcode17 chrome/renderer/resources/extensions/input.ime_custom_bindings.js:17: result = callback.apply(null, args); Nit: ...
8 years, 5 months ago (2012-07-06 06:25:56 UTC) #9
koz (OOO until 15th September)
Looks like tts also overrides dispatch, so I fixed that, too. https://chromiumcodereview.appspot.com/10704073/diff/7012/chrome/renderer/resources/extensions/input.ime_custom_bindings.js File chrome/renderer/resources/extensions/input.ime_custom_bindings.js (right): ...
8 years, 5 months ago (2012-07-06 07:31:20 UTC) #10
Matt Perry
lgtm https://chromiumcodereview.appspot.com/10704073/diff/15001/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10704073/diff/15001/chrome/renderer/extensions/extension_dispatcher.cc#newcode225 chrome/renderer/extensions/extension_dispatcher.cc:225: std::stringstream error_message; Streams are forbidden by the style ...
8 years, 5 months ago (2012-07-09 20:36:47 UTC) #11
koz (OOO until 15th September)
https://chromiumcodereview.appspot.com/10704073/diff/15001/chrome/renderer/extensions/extension_dispatcher.cc File chrome/renderer/extensions/extension_dispatcher.cc (right): https://chromiumcodereview.appspot.com/10704073/diff/15001/chrome/renderer/extensions/extension_dispatcher.cc#newcode225 chrome/renderer/extensions/extension_dispatcher.cc:225: std::stringstream error_message; On 2012/07/09 20:36:47, Matt Perry wrote: > ...
8 years, 5 months ago (2012-07-11 00:00:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10704073/8004
8 years, 5 months ago (2012-07-11 00:00:56 UTC) #13
commit-bot: I haz the power
Try job failure for 10704073-8004 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-11 00:21:20 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10704073/3006
8 years, 5 months ago (2012-07-11 00:52:48 UTC) #15
commit-bot: I haz the power
Change committed as 146038
8 years, 5 months ago (2012-07-11 02:42:00 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/koz@chromium.org/10704073/1028
8 years, 5 months ago (2012-07-12 03:40:42 UTC) #17
commit-bot: I haz the power
8 years, 5 months ago (2012-07-12 05:27:55 UTC) #18
Change committed as 146289

Powered by Google App Engine
This is Rietveld 408576698