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

Issue 283423005: Use Promises for screen.lockOrientation(). (Closed)

Created:
6 years, 7 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 7 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use Promises for screen.lockOrientation(). This change is changing the Blink implementation and adds the Platform interface but changes in the content layer a required to make it work fully. BUG=162827 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174773

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : cdumez comments #

Total comments: 23

Patch Set 4 : review commenst #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -76 lines) Patch
M LayoutTests/screen_orientation/lockOrientation-basic.html View 1 2 3 1 chunk +42 lines, -11 lines 0 comments Download
D LayoutTests/screen_orientation/lockOrientation-basic-expected.txt View 1 chunk +0 lines, -20 lines 0 comments Download
M LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html View 1 2 3 1 chunk +15 lines, -7 lines 0 comments Download
M Source/modules/modules.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/LockOrientationCallback.h View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A Source/modules/screen_orientation/LockOrientationCallback.cpp View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.h View 1 2 3 2 chunks +7 lines, -8 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 2 3 4 chunks +24 lines, -29 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M public/platform/Platform.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
A public/platform/WebLockOrientationCallback.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
mlamouri (slow - plz ping)
Christophe, could you review the changes in: Source/modules/screen_orientation/ abarth@, could you review the changes in: ...
6 years, 7 months ago (2014-05-15 17:26:30 UTC) #1
Inactive
Adam is much more familiar than me with Promises so I'd like him to review ...
6 years, 7 months ago (2014-05-16 13:25:25 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/283423005/diff/1/Source/modules/screen_orientation/LockOrientationCallback.h File Source/modules/screen_orientation/LockOrientationCallback.h (right): https://codereview.chromium.org/283423005/diff/1/Source/modules/screen_orientation/LockOrientationCallback.h#newcode22 Source/modules/screen_orientation/LockOrientationCallback.h:22: class LockOrientationCallback FINAL : public blink::WebCallbacks<blink::WebScreenOrientationType, blink::WebDOMException> { On ...
6 years, 7 months ago (2014-05-21 13:45:02 UTC) #3
Inactive
https://codereview.chromium.org/283423005/diff/1/Source/modules/screen_orientation/LockOrientationCallback.h File Source/modules/screen_orientation/LockOrientationCallback.h (right): https://codereview.chromium.org/283423005/diff/1/Source/modules/screen_orientation/LockOrientationCallback.h#newcode22 Source/modules/screen_orientation/LockOrientationCallback.h:22: class LockOrientationCallback FINAL : public blink::WebCallbacks<blink::WebScreenOrientationType, blink::WebDOMException> { On ...
6 years, 7 months ago (2014-05-21 13:48:07 UTC) #4
mlamouri (slow - plz ping)
Chris, could you have a look at the screen_orientation/ changes? yhirano@, could you have a ...
6 years, 7 months ago (2014-05-21 15:51:33 UTC) #5
Inactive
lgtm with nit. https://codereview.chromium.org/283423005/diff/10001/Source/modules/screen_orientation/LockOrientationCallback.h File Source/modules/screen_orientation/LockOrientationCallback.h (right): https://codereview.chromium.org/283423005/diff/10001/Source/modules/screen_orientation/LockOrientationCallback.h#newcode23 Source/modules/screen_orientation/LockOrientationCallback.h:23: LockOrientationCallback(PassRefPtr<ScriptPromiseResolverWithContext>); explicit?
6 years, 7 months ago (2014-05-21 16:01:45 UTC) #6
Inactive
https://codereview.chromium.org/283423005/diff/10001/Source/modules/screen_orientation/LockOrientationCallback.h File Source/modules/screen_orientation/LockOrientationCallback.h (right): https://codereview.chromium.org/283423005/diff/10001/Source/modules/screen_orientation/LockOrientationCallback.h#newcode31 Source/modules/screen_orientation/LockOrientationCallback.h:31: WTF_MAKE_NONCOPYABLE(LockOrientationCallback); nit: I think we usually have this one ...
6 years, 7 months ago (2014-05-21 16:02:50 UTC) #7
mlamouri (slow - plz ping)
Thanks for the quick review Chris, I've updated the patch accordingly.
6 years, 7 months ago (2014-05-21 16:14:37 UTC) #8
yhirano
https://codereview.chromium.org/283423005/diff/30001/Source/modules/screen_orientation/ScreenOrientation.h File Source/modules/screen_orientation/ScreenOrientation.h (right): https://codereview.chromium.org/283423005/diff/30001/Source/modules/screen_orientation/ScreenOrientation.h#newcode22 Source/modules/screen_orientation/ScreenOrientation.h:22: class ScriptPromise; I think this forward declaration is meaningless ...
6 years, 7 months ago (2014-05-22 03:48:43 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/283423005/diff/30001/LayoutTests/screen_orientation/lockOrientation-basic.html File LayoutTests/screen_orientation/lockOrientation-basic.html (right): https://codereview.chromium.org/283423005/diff/30001/LayoutTests/screen_orientation/lockOrientation-basic.html#newcode11 LayoutTests/screen_orientation/lockOrientation-basic.html:11: var caught = false; 4 space indent plz https://codereview.chromium.org/283423005/diff/30001/LayoutTests/screen_orientation/resources/sandboxed-iframe-locking.html ...
6 years, 7 months ago (2014-05-22 08:34:34 UTC) #10
mlamouri (slow - plz ping)
Review comments applied. PTAL https://codereview.chromium.org/283423005/diff/30001/LayoutTests/screen_orientation/lockOrientation-basic.html File LayoutTests/screen_orientation/lockOrientation-basic.html (right): https://codereview.chromium.org/283423005/diff/30001/LayoutTests/screen_orientation/lockOrientation-basic.html#newcode11 LayoutTests/screen_orientation/lockOrientation-basic.html:11: var caught = false; On ...
6 years, 7 months ago (2014-05-22 08:58:56 UTC) #11
yhirano
lgtm for the Promises usage.
6 years, 7 months ago (2014-05-23 04:44:58 UTC) #12
esprehn
btw, It's nice to link to the section of the spec that says it returns ...
6 years, 7 months ago (2014-05-23 04:47:09 UTC) #13
jochen (gone - plz use gerrit)
https://codereview.chromium.org/283423005/diff/30001/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/283423005/diff/30001/public/platform/Platform.h#newcode638 public/platform/Platform.h:638: virtual void lockOrientation(WebScreenOrientationLockType) { } On 2014/05/22 08:58:56, Mounir ...
6 years, 7 months ago (2014-05-23 07:43:26 UTC) #14
jochen (gone - plz use gerrit)
other than that, lgtm
6 years, 7 months ago (2014-05-23 07:49:37 UTC) #15
mlamouri (slow - plz ping)
On 2014/05/23 07:49:37, jochen wrote: > other than that, lgtm This is a CL to ...
6 years, 7 months ago (2014-05-23 14:38:29 UTC) #16
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 7 months ago (2014-05-25 13:04:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/283423005/50001
6 years, 7 months ago (2014-05-25 13:04:47 UTC) #18
commit-bot: I haz the power
6 years, 7 months ago (2014-05-25 14:24:32 UTC) #19
Message was sent while issue was closed.
Change committed as 174773

Powered by Google App Engine
This is Rietveld 408576698