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

Issue 443053002: Add support for RelatedEvent. (Closed)

Created:
6 years, 4 months ago by pals
Modified:
6 years, 4 months ago
Reviewers:
tkent
CC:
blink-reviews, arv+blink, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add support for RelatedEvent. Add support for RelatedEvent which is needed to implement contextmenu. Specifications: http://www.whatwg.org/specs/web-apps/current-work/#relatedevent BUG=87553 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179626

Patch Set 1 #

Total comments: 18

Patch Set 2 : Added more tests #

Total comments: 5

Patch Set 3 : Done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -0 lines) Patch
A LayoutTests/fast/events/constructors/related-event-constructor.html View 1 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/constructors/related-event-constructor-expected.txt View 1 1 chunk +32 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/relatedevent.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/relatedevent-expected.txt View 1 1 chunk +12 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-constructors-listing-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core.gypi View 1 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/events/Event.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/Event.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
A Source/core/events/RelatedEvent.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A Source/core/events/RelatedEvent.cpp View 1 chunk +58 lines, -0 lines 0 comments Download
A Source/core/events/RelatedEvent.idl View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
pals
Please review.
6 years, 4 months ago (2014-08-06 07:22:36 UTC) #1
tkent
https://codereview.chromium.org/443053002/diff/1/LayoutTests/fast/events/constructors/related-event-constructor.html File LayoutTests/fast/events/constructors/related-event-constructor.html (right): https://codereview.chromium.org/443053002/diff/1/LayoutTests/fast/events/constructors/related-event-constructor.html#newcode15 LayoutTests/fast/events/constructors/related-event-constructor.html:15: shouldBe("new RelatedEvent('eventType').bubbles", "false"); Use shouldBeFalse instead of shouldBe. https://codereview.chromium.org/443053002/diff/1/LayoutTests/fast/events/constructors/related-event-constructor.html#newcode16 ...
6 years, 4 months ago (2014-08-06 07:58:35 UTC) #2
tkent
Also, we should have tests to confirm behavior of updating IDL properties. e.g. event.bubbles = ...
6 years, 4 months ago (2014-08-06 10:22:05 UTC) #3
pals
Added test to confirm that we cannot update readonly idl attributes. https://codereview.chromium.org/443053002/diff/1/LayoutTests/fast/events/constructors/related-event-constructor.html File LayoutTests/fast/events/constructors/related-event-constructor.html (right): ...
6 years, 4 months ago (2014-08-06 12:43:55 UTC) #4
tkent
lgtm https://codereview.chromium.org/443053002/diff/20001/Source/core/events/RelatedEvent.h File Source/core/events/RelatedEvent.h (right): https://codereview.chromium.org/443053002/diff/20001/Source/core/events/RelatedEvent.h#newcode19 Source/core/events/RelatedEvent.h:19: static PassRefPtrWillBeRawPtr<RelatedEvent> create(); Is this necessary? https://codereview.chromium.org/443053002/diff/20001/Source/core/events/RelatedEvent.h#newcode26 Source/core/events/RelatedEvent.h:26: ...
6 years, 4 months ago (2014-08-06 12:56:02 UTC) #5
pals
https://codereview.chromium.org/443053002/diff/20001/Source/core/events/RelatedEvent.h File Source/core/events/RelatedEvent.h (right): https://codereview.chromium.org/443053002/diff/20001/Source/core/events/RelatedEvent.h#newcode19 Source/core/events/RelatedEvent.h:19: static PassRefPtrWillBeRawPtr<RelatedEvent> create(); On 2014/08/06 12:56:02, tkent wrote: > ...
6 years, 4 months ago (2014-08-06 13:05:13 UTC) #6
pals
The CQ bit was checked by sanjoy.pal@samsung.com
6 years, 4 months ago (2014-08-06 13:27:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sanjoy.pal@samsung.com/443053002/40001
6 years, 4 months ago (2014-08-06 13:28:59 UTC) #8
commit-bot: I haz the power
Change committed as 179626
6 years, 4 months ago (2014-08-06 16:12:50 UTC) #9
tkent
6 years, 4 months ago (2014-08-06 23:19:34 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/443053002/diff/20001/Source/core/events/Relat...
File Source/core/events/RelatedEvent.h (right):

https://codereview.chromium.org/443053002/diff/20001/Source/core/events/Relat...
Source/core/events/RelatedEvent.h:26: void
setRelatedTarget(PassRefPtrWillBeRawPtr<EventTarget> relatedTarget) {
m_relatedTarget = relatedTarget; }
I think this function won't be used.  Let's remove this in a following patch if
it is unnecessary.

Powered by Google App Engine
This is Rietveld 408576698