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

Issue 241203003: Screen Orientation: fire event on Window instead of Screen. (Closed)

Created:
6 years, 8 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 8 months ago
CC:
blink-reviews, arv+blink, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@ScreenOrientationUndefined
Visibility:
Public.

Description

Screen Orientation: fire event on Window instead of Screen. This is following spec discussions in public-webapps. BUG=162827 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172152

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -49 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt View 1 chunk +0 lines, -4 lines 0 comments Download
M LayoutTests/screen_orientation/lockOrientation-bad-argument.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/screen_orientation/lockOrientation-bad-array-argument.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/screen_orientation/orientationchange-event.html View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
M LayoutTests/screen_orientation/screenorientation-api.html View 1 chunk +1 line, -6 lines 0 comments Download
M LayoutTests/screen_orientation/screenorientation-api-expected.txt View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M Source/core/events/EventTargetFactory.in View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/frame/Screen.h View 3 chunks +1 line, -7 lines 0 comments Download
M Source/core/frame/Screen.cpp View 1 chunk +0 lines, -12 lines 0 comments Download
M Source/core/frame/Screen.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.h View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.idl View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (0 generated)
mlamouri (slow - plz ping)
6 years, 8 months ago (2014-04-17 20:13:08 UTC) #1
Inactive
On 2014/04/17 20:13:08, Mounir Lamouri wrote: This bug id looks odd: BUG=241333003
6 years, 8 months ago (2014-04-17 20:23:16 UTC) #2
mlamouri (slow - plz ping)
On 2014/04/17 20:23:16, Chris Dumez wrote: > On 2014/04/17 20:13:08, Mounir Lamouri wrote: > > ...
6 years, 8 months ago (2014-04-17 20:24:56 UTC) #3
Inactive
https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode44 Source/modules/screen_orientation/ScreenOrientationController.cpp:44: m_document.domWindow()->dispatchEvent(Event::create(EventTypeNames::orientationchange)); Doesn't this event get fired twice now? (once ...
6 years, 8 months ago (2014-04-17 20:29:48 UTC) #4
Inactive
https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl File Source/core/frame/Screen.idl (left): https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl#oldcode32 Source/core/frame/Screen.idl:32: ] interface Screen : EventTarget { Technically, this change ...
6 years, 8 months ago (2014-04-17 20:31:41 UTC) #5
mlamouri (slow - plz ping)
https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode44 Source/modules/screen_orientation/ScreenOrientationController.cpp:44: m_document.domWindow()->dispatchEvent(Event::create(EventTypeNames::orientationchange)); On 2014/04/17 20:29:48, Chris Dumez wrote: > Doesn't ...
6 years, 8 months ago (2014-04-17 20:34:33 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl File Source/core/frame/Screen.idl (left): https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl#oldcode32 Source/core/frame/Screen.idl:32: ] interface Screen : EventTarget { On 2014/04/17 20:31:42, ...
6 years, 8 months ago (2014-04-17 20:36:06 UTC) #7
Inactive
https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode44 Source/modules/screen_orientation/ScreenOrientationController.cpp:44: m_document.domWindow()->dispatchEvent(Event::create(EventTypeNames::orientationchange)); On 2014/04/17 20:34:33, Mounir Lamouri wrote: > On ...
6 years, 8 months ago (2014-04-17 20:41:18 UTC) #8
abarth-chromium
https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl File Source/core/frame/Screen.idl (left): https://codereview.chromium.org/241203003/diff/1/Source/core/frame/Screen.idl#oldcode32 Source/core/frame/Screen.idl:32: ] interface Screen : EventTarget { On 2014/04/17 20:36:07, ...
6 years, 8 months ago (2014-04-17 23:36:47 UTC) #9
mlamouri (slow - plz ping)
I have a CL for the test infra: https://codereview.chromium.org/242703002/
6 years, 8 months ago (2014-04-18 04:06:16 UTC) #10
mlamouri (slow - plz ping)
https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp File Source/modules/screen_orientation/ScreenOrientationController.cpp (right): https://codereview.chromium.org/241203003/diff/1/Source/modules/screen_orientation/ScreenOrientationController.cpp#newcode44 Source/modules/screen_orientation/ScreenOrientationController.cpp:44: m_document.domWindow()->dispatchEvent(Event::create(EventTypeNames::orientationchange)); On 2014/04/17 23:36:47, abarth wrote: > On 2014/04/17 ...
6 years, 8 months ago (2014-04-18 16:42:17 UTC) #11
mlamouri (slow - plz ping)
Patch #2 has a test with a TODO for window.onorientationchange. PTAL.
6 years, 8 months ago (2014-04-19 01:23:57 UTC) #12
abarth-chromium
On 2014/04/19 01:23:57, Mounir Lamouri wrote: > Patch #2 has a test with a TODO ...
6 years, 8 months ago (2014-04-19 16:30:20 UTC) #13
Inactive
On 2014/04/19 16:30:20, abarth wrote: > On 2014/04/19 01:23:57, Mounir Lamouri wrote: > > Patch ...
6 years, 8 months ago (2014-04-19 19:02:02 UTC) #14
Inactive
Mounir, it looks like you forgot to remove the following from ScreenOrientation.h as well: DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(orientationchange); ...
6 years, 8 months ago (2014-04-19 19:05:34 UTC) #15
Inactive
https://codereview.chromium.org/241203003/diff/10001/LayoutTests/screen_orientation/orientationchange-event.html File LayoutTests/screen_orientation/orientationchange-event.html (right): https://codereview.chromium.org/241203003/diff/10001/LayoutTests/screen_orientation/orientationchange-event.html#newcode16 LayoutTests/screen_orientation/orientationchange-event.html:16: var eventHandlers = 0; Maybe "eventHandlerCount"? (Something with "Count" ...
6 years, 8 months ago (2014-04-19 19:14:19 UTC) #16
mlamouri (slow - plz ping)
I have also updated ScreenOrientation.h to remove the things you pointed. PTAL. https://codereview.chromium.org/241203003/diff/10001/LayoutTests/screen_orientation/orientationchange-event.html File LayoutTests/screen_orientation/orientationchange-event.html ...
6 years, 8 months ago (2014-04-19 23:24:20 UTC) #17
Inactive
lgtm, thanks.
6 years, 8 months ago (2014-04-20 00:19:03 UTC) #18
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-20 03:04:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/241203003/30001
6 years, 8 months ago (2014-04-20 03:04:31 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-20 03:42:01 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-20 03:42:02 UTC) #22
Inactive
On 2014/04/20 03:42:02, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-20 03:50:47 UTC) #23
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-22 13:49:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/241203003/50001
6 years, 8 months ago (2014-04-22 13:49:38 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 14:31:22 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-22 14:31:23 UTC) #27
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-22 14:34:22 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/241203003/50001
6 years, 8 months ago (2014-04-22 14:34:37 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 15:06:44 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 8 months ago (2014-04-22 15:06:45 UTC) #31
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-22 15:24:09 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/241203003/50001
6 years, 8 months ago (2014-04-22 15:24:18 UTC) #33
commit-bot: I haz the power
6 years, 8 months ago (2014-04-22 16:44:46 UTC) #34
Message was sent while issue was closed.
Change committed as 172152

Powered by Google App Engine
This is Rietveld 408576698