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

Issue 168763002: Add initial Screen Orientation API support: IDL changes (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
CC:
blink-reviews, abarth-chromium, arv+blink, Inactive, watchdog-blink-watchlist_google.com, Peter Beverloo, mlamouri (slow - plz ping)
Visibility:
Public.

Description

Add initial Screen Orientation API support: IDL changes Add initial Screen Orientation API support: IDL changes: https://dvcs.w3.org/hg/screen-orientation/raw-file/tip/Overview.html This new API is implemented behind a "ScreenOrientation" runtime-enabled flag. The intent to implement was sent to blink-dev: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/lgUq8K9IGlU This CL changes Screen to be an EventTarget. While the Screen Orientation API has been implemented behind a RuntimeEnabled flag, there is no way of having inheritance depend on the flag's value. The Web exposed effect of this is that people will now be able to dispatch custom events on the window.screen interface, which in itself is harmless. R=abarth BUG=162827 TEST=screen_orientation/screenorientation-api.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167259

Patch Set 1 #

Patch Set 2 : Rebase additional test #

Total comments: 19

Patch Set 3 : Take Adam's feedback into consideration #

Total comments: 7

Patch Set 4 : Fix remaining nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -3 lines) Patch
M LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt View 1 1 chunk +7 lines, -0 lines 0 comments Download
A LayoutTests/screen_orientation/screenorientation-api.html View 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/screen_orientation/screenorientation-api-expected.txt View 1 chunk +17 lines, -0 lines 0 comments Download
M Source/core/events/EventTargetFactory.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Screen.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M Source/core/frame/Screen.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/frame/Screen.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/modules.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/ScreenOrientation.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/ScreenOrientation.cpp View 1 2 3 1 chunk +72 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/ScreenOrientation.idl View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Inactive
https://codereview.chromium.org/168763002/diff/50001/Source/core/frame/Screen.cpp File Source/core/frame/Screen.cpp (right): https://codereview.chromium.org/168763002/diff/50001/Source/core/frame/Screen.cpp#newcode131 Source/core/frame/Screen.cpp:131: return 0; You asked about the risk of returning ...
6 years, 10 months ago (2014-02-16 02:01:54 UTC) #1
abarth-chromium
Thanks for breaking this down into smaller pieces. This CL is a good, digestible size. ...
6 years, 10 months ago (2014-02-16 04:03:48 UTC) #2
Inactive
Thanks for all the feedback. https://codereview.chromium.org/168763002/diff/50001/Source/core/frame/Screen.idl File Source/core/frame/Screen.idl (right): https://codereview.chromium.org/168763002/diff/50001/Source/core/frame/Screen.idl#newcode30 Source/core/frame/Screen.idl:30: interface Screen : EventTarget ...
6 years, 10 months ago (2014-02-16 04:35:55 UTC) #3
abarth-chromium
LGTM Thanks for iterating on this CL! https://codereview.chromium.org/168763002/diff/160001/Source/core/frame/Screen.h File Source/core/frame/Screen.h (left): https://codereview.chromium.org/168763002/diff/160001/Source/core/frame/Screen.h#oldcode44 Source/core/frame/Screen.h:44: static PassRefPtr<Screen> ...
6 years, 10 months ago (2014-02-16 09:14:11 UTC) #4
Inactive
https://codereview.chromium.org/168763002/diff/160001/Source/core/frame/Screen.h File Source/core/frame/Screen.h (left): https://codereview.chromium.org/168763002/diff/160001/Source/core/frame/Screen.h#oldcode44 Source/core/frame/Screen.h:44: static PassRefPtr<Screen> create(Frame *frame) { return adoptRef(new Screen(frame)); } ...
6 years, 10 months ago (2014-02-16 14:09:13 UTC) #5
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-16 14:09:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/168763002/260001
6 years, 10 months ago (2014-02-16 14:09:35 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-16 15:26:19 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=18829
6 years, 10 months ago (2014-02-16 15:26:19 UTC) #9
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-16 23:39:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/168763002/260001
6 years, 10 months ago (2014-02-16 23:40:01 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-17 02:56:16 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=12658
6 years, 10 months ago (2014-02-17 02:56:16 UTC) #13
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 10 months ago (2014-02-17 03:13:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/168763002/260001
6 years, 10 months ago (2014-02-17 03:13:50 UTC) #15
commit-bot: I haz the power
6 years, 10 months ago (2014-02-17 04:12:58 UTC) #16
Message was sent while issue was closed.
Change committed as 167259

Powered by Google App Engine
This is Rietveld 408576698