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

Issue 1084923002: Wake Lock API implementation (Blink part) (Closed)

Created:
5 years, 8 months ago by alogvinov
Modified:
5 years, 3 months ago
CC:
arv+blink, blink-reviews, blink-reviews-dom_chromium.org, Inactive, dglazkov+blink, eae+blinkwatch, jpmedley, rwlbuis, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Wake Lock API implementation (Blink part) This is Blink part of Wake Lock API implementation as per specification: http://w3c.github.io/wake-lock/ The corresponding Chromium part is ready and will be submitted after these changes land, as it is dependent on them. Tracking bug: https://code.google.com/p/chromium/issues/detail?id=257511 Design document: https://docs.google.com/document/d/1KbIENP0wgxtSXDQFn9PbHZ_tAKZfR1Y8u4Hst8LpeaA/edit?usp=sharing R=mlamouri@chromium.org Committed: https://crrev.com/2f87b1b5d7ce34064a9f1302a9a19683abf592a8 git-svn-id: svn://svn.chromium.org/blink/trunk@199659 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 22

Patch Set 2 : Applied review comments #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 15

Patch Set 11 : #

Total comments: 22

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -0 lines) Patch
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/window-appendages-cleared-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/wake_lock/resources/subframe.html View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/wake_lock/wakelock-api.html View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/wake_lock/wakelock-in-nested-frame.html View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/ScreenWakeLock.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/ScreenWakeLock.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +112 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/ScreenWakeLock.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
A Source/web/tests/ScreenWakeLockTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +196 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A public/platform/modules/wake_lock/WebWakeLockClient.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +19 lines, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (5 generated)
alogvinov
5 years, 8 months ago (2015-04-14 12:39:16 UTC) #1
alogvinov
Can you please take a look at this patch?
5 years, 8 months ago (2015-04-22 08:51:09 UTC) #2
mlamouri (slow - plz ping)
Thanks for the CL! and sorry for the delay. I have left a few comments ...
5 years, 8 months ago (2015-04-28 08:00:26 UTC) #3
alogvinov
On 2015/04/28 08:00:26, Mounir Lamouri wrote: > Thanks for the CL! and sorry for the ...
5 years, 7 months ago (2015-04-28 10:32:12 UTC) #4
alogvinov
https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/WakeLock.h File Source/core/dom/WakeLock.h (right): https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/WakeLock.h#newcode20 Source/core/dom/WakeLock.h:20: , public DocumentSupplement WakeLock stores the state of keepScreenAwake ...
5 years, 7 months ago (2015-04-28 16:34:25 UTC) #5
alogvinov
https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl File Source/core/dom/DocumentWakeLock.idl (right): https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl#newcode1 Source/core/dom/DocumentWakeLock.idl:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 7 months ago (2015-04-28 16:49:10 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl File Source/core/dom/DocumentWakeLock.idl (right): https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl#newcode1 Source/core/dom/DocumentWakeLock.idl:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 7 months ago (2015-04-29 10:07:08 UTC) #7
alogvinov
https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl File Source/core/dom/DocumentWakeLock.idl (right): https://codereview.chromium.org/1084923002/diff/1/Source/core/dom/DocumentWakeLock.idl#newcode1 Source/core/dom/DocumentWakeLock.idl:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 7 months ago (2015-04-29 16:50:59 UTC) #8
mlamouri (slow - plz ping)
+jochen@ for the document/frame issue. +jl@ for the bindings problem (partial Document interfaces in modules/). ...
5 years, 7 months ago (2015-04-30 13:15:38 UTC) #10
Jens Widell
On 2015/04/30 13:15:38, Mounir Lamouri wrote: > +jl@ for the bindings problem (partial Document interfaces ...
5 years, 7 months ago (2015-04-30 14:07:51 UTC) #11
jochen (gone - plz use gerrit)
can you please file a tracking bug and explain how you intend to implement this? ...
5 years, 7 months ago (2015-05-04 07:01:59 UTC) #12
mlamouri (slow - plz ping)
On 2015/05/04 at 07:01:59, jochen wrote: > can you please file a tracking bug and ...
5 years, 7 months ago (2015-05-04 13:19:14 UTC) #13
alogvinov
https://codereview.chromium.org/1084923002/diff/20001/Source/bindings/templates/interface_base.cpp File Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/1084923002/diff/20001/Source/bindings/templates/interface_base.cpp#newcode496 Source/bindings/templates/interface_base.cpp:496: {% for method in methods if method.is_implemented_in_private_script and method.visible ...
5 years, 7 months ago (2015-05-05 11:29:57 UTC) #14
Jens Widell
On 2015/05/05 11:29:57, alogvinov wrote: > https://codereview.chromium.org/1084923002/diff/20001/Source/bindings/templates/interface_base.cpp > File Source/bindings/templates/interface_base.cpp (right): > > https://codereview.chromium.org/1084923002/diff/20001/Source/bindings/templates/interface_base.cpp#newcode496 > ...
5 years, 7 months ago (2015-05-05 11:34:15 UTC) #15
mlamouri (slow - plz ping)
Thanks for moving things to modules/. I'm still interested to hear what jochen@ has to ...
5 years, 7 months ago (2015-05-05 13:45:44 UTC) #16
jochen (gone - plz use gerrit)
On 2015/05/05 at 13:45:44, mlamouri wrote: > Thanks for moving things to modules/. I'm still ...
5 years, 7 months ago (2015-05-05 14:16:22 UTC) #17
alogvinov
https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/DocumentWakeLock.cpp File Source/modules/wake_lock/DocumentWakeLock.cpp (right): https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/DocumentWakeLock.cpp#newcode14 Source/modules/wake_lock/DocumentWakeLock.cpp:14: return WakeLock::keepScreenAwake(document); On 2015/05/05 13:45:43, Mounir Lamouri wrote: > ...
5 years, 7 months ago (2015-05-05 16:22:27 UTC) #18
alogvinov
https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp File Source/modules/wake_lock/WakeLockController.cpp (right): https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp#newcode44 Source/modules/wake_lock/WakeLockController.cpp:44: m_client->requestKeepScreenAwake(keepScreenAwake); On 2015/05/05 13:45:44, Mounir Lamouri wrote: > It ...
5 years, 7 months ago (2015-05-06 09:12:34 UTC) #19
mlamouri (slow - plz ping)
https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp File Source/modules/wake_lock/WakeLockController.cpp (right): https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp#newcode44 Source/modules/wake_lock/WakeLockController.cpp:44: m_client->requestKeepScreenAwake(keepScreenAwake); On 2015/05/06 at 09:12:34, alogvinov wrote: > On ...
5 years, 7 months ago (2015-05-06 10:03:42 UTC) #20
alogvinov
On 2015/05/06 10:03:42, Mounir Lamouri wrote: > https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp > File Source/modules/wake_lock/WakeLockController.cpp (right): > > https://codereview.chromium.org/1084923002/diff/20001/Source/modules/wake_lock/WakeLockController.cpp#newcode44 ...
5 years, 7 months ago (2015-05-07 12:07:36 UTC) #21
mlamouri (slow - plz ping)
On 2015/05/07 at 12:07:36, alogvinov wrote: > On 2015/05/06 10:03:42, Mounir Lamouri wrote: > > ...
5 years, 7 months ago (2015-05-07 12:54:09 UTC) #22
alogvinov
On 2015/05/07 12:54:09, Mounir Lamouri wrote: > On 2015/05/07 at 12:07:36, alogvinov wrote: > > ...
5 years, 7 months ago (2015-05-18 17:06:34 UTC) #23
jochen (gone - plz use gerrit)
not lgtm sorry to be a pest about this, but there's no design doc, no ...
5 years, 7 months ago (2015-05-19 11:07:55 UTC) #24
mlamouri (slow - plz ping)
On 2015/05/19 at 11:07:55, jochen wrote: > not lgtm > > sorry to be a ...
5 years, 7 months ago (2015-05-19 11:35:35 UTC) #25
jochen (gone - plz use gerrit)
On 2015/05/19 at 11:35:35, mlamouri wrote: > On 2015/05/19 at 11:07:55, jochen wrote: > > ...
5 years, 7 months ago (2015-05-19 11:37:54 UTC) #26
alogvinov
On 2015/05/19 11:37:54, jochen wrote: > On 2015/05/19 at 11:35:35, mlamouri wrote: > > On ...
5 years, 7 months ago (2015-05-22 14:06:17 UTC) #27
jochen (gone - plz use gerrit)
On 2015/05/22 at 14:06:17, alogvinov wrote: > On 2015/05/19 11:37:54, jochen wrote: > > On ...
5 years, 7 months ago (2015-05-27 14:45:32 UTC) #28
alogvinov
On 2015/05/27 14:45:32, jochen wrote: > On 2015/05/22 at 14:06:17, alogvinov wrote: > > On ...
5 years, 5 months ago (2015-07-02 09:26:23 UTC) #29
mlamouri (slow - plz ping)
The recent discussions in the spec repository were moving to have the property on the ...
5 years, 5 months ago (2015-07-02 10:24:22 UTC) #30
alogvinov
On 2015/07/02 10:24:22, Mounir Lamouri wrote: > The recent discussions in the spec repository were ...
5 years, 5 months ago (2015-07-02 10:44:41 UTC) #31
alogvinov
On 2015/07/02 10:24:22, Mounir Lamouri wrote: > The recent discussions in the spec repository were ...
5 years, 5 months ago (2015-07-03 16:51:19 UTC) #32
mlamouri (slow - plz ping)
It looks good pretty good. I still have a few comments though, see below. https://codereview.chromium.org/1084923002/diff/180001/Source/modules/wake_lock/DEPS ...
5 years, 5 months ago (2015-07-05 14:50:15 UTC) #33
alogvinov
https://codereview.chromium.org/1084923002/diff/180001/public/platform/modules/wake_lock/WebWakeLockClient.h File public/platform/modules/wake_lock/WebWakeLockClient.h (right): https://codereview.chromium.org/1084923002/diff/180001/public/platform/modules/wake_lock/WebWakeLockClient.h#newcode14 public/platform/modules/wake_lock/WebWakeLockClient.h:14: virtual void requestKeepScreenAwake(bool) { }; On 2015/07/05 14:50:15, Mounir ...
5 years, 5 months ago (2015-07-06 09:26:29 UTC) #34
mlamouri (slow - plz ping)
https://codereview.chromium.org/1084923002/diff/180001/public/platform/modules/wake_lock/WebWakeLockClient.h File public/platform/modules/wake_lock/WebWakeLockClient.h (right): https://codereview.chromium.org/1084923002/diff/180001/public/platform/modules/wake_lock/WebWakeLockClient.h#newcode14 public/platform/modules/wake_lock/WebWakeLockClient.h:14: virtual void requestKeepScreenAwake(bool) { }; On 2015/07/06 at 09:26:29, ...
5 years, 5 months ago (2015-07-06 10:13:01 UTC) #35
alogvinov
https://codereview.chromium.org/1084923002/diff/180001/Source/modules/wake_lock/ScreenWakeLock.cpp File Source/modules/wake_lock/ScreenWakeLock.cpp (right): https://codereview.chromium.org/1084923002/diff/180001/Source/modules/wake_lock/ScreenWakeLock.cpp#newcode84 Source/modules/wake_lock/ScreenWakeLock.cpp:84: } On 2015/07/05 14:50:14, Mounir Lamouri wrote: > Couldn't ...
5 years, 5 months ago (2015-07-06 10:18:35 UTC) #36
alogvinov
Now that the spec is changed to use Screen interface instead of Document, the implementation ...
5 years, 5 months ago (2015-07-09 16:22:17 UTC) #37
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.cpp File Source/modules/wake_lock/ScreenWakeLock.cpp (right): https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.cpp#newcode71 Source/modules/wake_lock/ScreenWakeLock.cpp:71: // Reset wake lock flag ...
5 years, 5 months ago (2015-07-24 10:47:58 UTC) #38
jochen (gone - plz use gerrit)
+haraken for oilpan https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h File Source/modules/wake_lock/ScreenWakeLock.h (right): https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h#newcode19 Source/modules/wake_lock/ScreenWakeLock.h:19: class MODULES_EXPORT ScreenWakeLock final all the ...
5 years, 5 months ago (2015-07-24 11:25:43 UTC) #40
sof
Oilpan fine. https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h File Source/modules/wake_lock/ScreenWakeLock.h (right): https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h#newcode21 Source/modules/wake_lock/ScreenWakeLock.h:21: , public WillBeHeapSupplement<LocalFrame> Question: ScreenWakeLock.idl is defined ...
5 years, 5 months ago (2015-07-24 12:01:51 UTC) #42
alogvinov
On 2015/07/24 12:01:51, sof wrote: > Oilpan fine. > > https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h > File Source/modules/wake_lock/ScreenWakeLock.h (right): ...
5 years, 5 months ago (2015-07-24 12:39:23 UTC) #43
alogvinov
https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.cpp File Source/modules/wake_lock/ScreenWakeLock.cpp (right): https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.cpp#newcode71 Source/modules/wake_lock/ScreenWakeLock.cpp:71: // Reset wake lock flag for this frame if ...
5 years, 5 months ago (2015-07-24 13:36:01 UTC) #44
haraken
Oilpan part LGTM
5 years, 5 months ago (2015-07-24 18:39:28 UTC) #45
sof
On 2015/07/24 12:39:23, alogvinov wrote: > On 2015/07/24 12:01:51, sof wrote: > ... > > ...
5 years, 5 months ago (2015-07-27 06:39:01 UTC) #46
alogvinov
On 2015/07/24 11:25:43, jochen wrote: > +haraken for oilpan > > https://codereview.chromium.org/1084923002/diff/200001/Source/modules/wake_lock/ScreenWakeLock.h > File Source/modules/wake_lock/ScreenWakeLock.h ...
5 years, 4 months ago (2015-07-29 08:30:00 UTC) #47
jochen (gone - plz use gerrit)
lgtm from my side, but please wait for sigbjornf to ack that he's happy with ...
5 years, 4 months ago (2015-07-29 11:44:50 UTC) #48
sof
On 2015/07/29 11:44:50, jochen wrote: > lgtm from my side, but please wait for sigbjornf ...
5 years, 4 months ago (2015-07-29 11:52:45 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1084923002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1084923002/240001
5 years, 4 months ago (2015-07-29 12:13:46 UTC) #52
commit-bot: I haz the power
Committed patchset #13 (id:240001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199659
5 years, 4 months ago (2015-07-29 13:21:30 UTC) #53
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 11:53:33 UTC) #54
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/2f87b1b5d7ce34064a9f1302a9a19683abf592a8

Powered by Google App Engine
This is Rietveld 408576698