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

Issue 1942723004: Change EventTarget callback APIs for add/RemoveEventListenerInternal. (Closed)

Created:
4 years, 7 months ago by dtapuska
Modified:
4 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-dom_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dglazkov+blink, krit, eae+blinkwatch, Eric Willigers, f(malita), fs, gyuyoung2, jkarlin+watch_chromium.org, kouhei+svg_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, ortuno+watch_chromium.org, pdr+svgwatchlist_chromium.org, pfeldman+blink_chromium.org, rjwright, rwlbuis, scheib+watch_chromium.org, Stephen Chennney, sergeyv+blink_chromium.org, shans, sof, toyoshim+midi_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change EventTarget callback APIs for add/RemoveEventListenerInternal. It will be necessary to know what RegisteredEventListener was added or removed with the AddEventListenerOptions IDL definition coming. Change the way the API callbacks occur to pass the registeredEventListener in. No functional change is intended with this change. BUG=602735 Committed: https://crrev.com/908fce48e7365aebede69d3275ad88817b8cf8b4 Cr-Commit-Position: refs/heads/master@{#392055}

Patch Set 1 #

Patch Set 2 : Fix gypi #

Total comments: 15

Patch Set 3 : Use find_if as per bokan@ request #

Total comments: 4

Patch Set 4 : Rebase #

Patch Set 5 : Fix incorrect comments #

Total comments: 1

Patch Set 6 : Add comment #

Patch Set 7 : Rebase #

Patch Set 8 : Fix win32 signed/unsigned issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -170 lines) Patch
M third_party/WebKit/Source/core/animation/Animation.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Node.cpp View 1 2 3 1 chunk +6 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventListenerMap.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventListenerMap.cpp View 1 2 3 4 5 4 chunks +30 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.h View 1 2 3 4 2 chunks +12 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTarget.cpp View 1 2 6 chunks +43 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/core/events/RegisteredEventListener.h View 1 2 3 4 5 6 7 1 chunk +47 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 6 3 chunks +7 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 2 2 chunks +9 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaDevices.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaDevices.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIInput.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (14 generated)
dtapuska
I had to keep add/RemoveEventListenerInternal for two cases 1) SVGElement.cpp and 2) ServiceWorkerGlobalScope. 1) Adds ...
4 years, 7 months ago (2016-05-02 20:16:30 UTC) #3
bokan
>I had to keep add/RemoveEventListenerInternal for two cases 1) SVGElement.cpp and 2) ServiceWorkerGlobalScope. Not sure ...
4 years, 7 months ago (2016-05-03 15:52:47 UTC) #4
dtapuska
There are 3 base (non-virtual) implementations of add/removeEventListener each. The values on the objects are ...
4 years, 7 months ago (2016-05-03 16:23:24 UTC) #5
bokan
On 2016/05/03 16:23:24, dtapuska wrote: > There are 3 base (non-virtual) implementations of add/removeEventListener each. ...
4 years, 7 months ago (2016-05-03 17:41:05 UTC) #6
bokan
Ok, lgtm, all my major points were addressed. The remainder are nits and suggestions. https://codereview.chromium.org/1942723004/diff/20001/third_party/WebKit/Source/core/events/EventListenerMap.cpp ...
4 years, 7 months ago (2016-05-03 17:42:02 UTC) #7
dtapuska
https://codereview.chromium.org/1942723004/diff/20001/third_party/WebKit/Source/core/events/EventListenerMap.cpp File third_party/WebKit/Source/core/events/EventListenerMap.cpp (right): https://codereview.chromium.org/1942723004/diff/20001/third_party/WebKit/Source/core/events/EventListenerMap.cpp#newcode133 third_party/WebKit/Source/core/events/EventListenerMap.cpp:133: static bool removeListenerFromVector(EventListenerVector* listenerVector, const EventListener* listener, const EventListenerOptions& ...
4 years, 7 months ago (2016-05-03 20:53:04 UTC) #11
ortuno
bluetooth lgtm https://codereview.chromium.org/1942723004/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp (right): https://codereview.chromium.org/1942723004/diff/20001/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp#newcode100 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp:100: WebBluetooth* webbluetooth = BluetoothSupplement::fromExecutionContext(getExecutionContext()); On 2016/05/03 at ...
4 years, 7 months ago (2016-05-03 20:59:56 UTC) #12
dtapuska
https://codereview.chromium.org/1942723004/diff/40001/third_party/WebKit/Source/core/events/EventTarget.h File third_party/WebKit/Source/core/events/EventTarget.h (right): https://codereview.chromium.org/1942723004/diff/40001/third_party/WebKit/Source/core/events/EventTarget.h#newcode157 third_party/WebKit/Source/core/events/EventTarget.h:157: // Called when an event listener has succesfully added. ...
4 years, 7 months ago (2016-05-03 21:07:31 UTC) #13
haraken
https://codereview.chromium.org/1942723004/diff/80001/third_party/WebKit/Source/core/events/EventListenerMap.cpp File third_party/WebKit/Source/core/events/EventListenerMap.cpp (right): https://codereview.chromium.org/1942723004/diff/80001/third_party/WebKit/Source/core/events/EventListenerMap.cpp#newcode140 third_party/WebKit/Source/core/events/EventListenerMap.cpp:140: }); Drive-by nit: I'd avoid introducing complex C++ though. ...
4 years, 7 months ago (2016-05-04 03:50:45 UTC) #15
dtapuska
On 2016/05/04 03:50:45, haraken wrote: > https://codereview.chromium.org/1942723004/diff/80001/third_party/WebKit/Source/core/events/EventListenerMap.cpp > File third_party/WebKit/Source/core/events/EventListenerMap.cpp (right): > > https://codereview.chromium.org/1942723004/diff/80001/third_party/WebKit/Source/core/events/EventListenerMap.cpp#newcode140 > ...
4 years, 7 months ago (2016-05-04 12:48:38 UTC) #16
bokan
On 2016/05/04 12:48:38, dtapuska wrote: > On 2016/05/04 03:50:45, haraken wrote: > > > https://codereview.chromium.org/1942723004/diff/80001/third_party/WebKit/Source/core/events/EventListenerMap.cpp ...
4 years, 7 months ago (2016-05-04 12:50:19 UTC) #17
dtapuska
On 2016/05/04 12:50:19, bokan wrote: > On 2016/05/04 12:48:38, dtapuska wrote: > > On 2016/05/04 ...
4 years, 7 months ago (2016-05-04 19:15:51 UTC) #19
yhirano
modules/webmidi LGTM
4 years, 7 months ago (2016-05-06 03:38:13 UTC) #20
dtapuska
On 2016/05/06 03:38:13, yhirano wrote: > modules/webmidi LGTM haraken@ ping; are you ok with this ...
4 years, 7 months ago (2016-05-06 03:46:38 UTC) #21
haraken
On 2016/05/06 03:46:38, dtapuska wrote: > On 2016/05/06 03:38:13, yhirano wrote: > > modules/webmidi LGTM ...
4 years, 7 months ago (2016-05-06 03:47:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942723004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942723004/120001
4 years, 7 months ago (2016-05-06 04:08:59 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/209400)
4 years, 7 months ago (2016-05-06 04:37:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1942723004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1942723004/140001
4 years, 7 months ago (2016-05-06 13:05:02 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-06 14:27:05 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 14:28:21 UTC) #34
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/908fce48e7365aebede69d3275ad88817b8cf8b4
Cr-Commit-Position: refs/heads/master@{#392055}

Powered by Google App Engine
This is Rietveld 408576698