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

Issue 399313003: Initial implementation of API WakeLock.

Created:
6 years, 5 months ago by redchenko
Modified:
6 years, 3 months ago
CC:
blink-reviews, dglazkov+blink, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Initial implementation of API WakeLock. BUG=257511 R=darin

Patch Set 1 #

Patch Set 2 : Implementation of WakeLock API on JavaScript side. #

Patch Set 3 : Implementation of WakeLock API on JavaScript side #

Total comments: 45

Patch Set 4 : Implementation of WakeLock API on JavaScript side. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -0 lines) Patch
M Source/modules/modules.gypi View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/NavigatorWakeLock.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/NavigatorWakeLock.cpp View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/NavigatorWakeLock.idl View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLock.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLock.cpp View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLock.idl View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLockController.h View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLockController.cpp View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLockPromiseResolver.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A Source/modules/wake_lock/WakeLockPromiseResolver.cpp View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A Source/web/tests/WakeLockTest.cpp View 1 2 1 chunk +266 lines, -0 lines 0 comments Download
M Source/web/web.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A public/platform/WebWakeLockClient.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A public/platform/WebWakeLockRequestCallback.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A public/platform/WebWakeLockType.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
redchenko
6 years, 5 months ago (2014-07-18 01:57:32 UTC) #1
abarth-chromium
This path is too large. can you divide it into smaller pieces, each of which ...
6 years, 5 months ago (2014-07-18 03:07:20 UTC) #2
kenneth.christiansen
The wake lock only affects the screen right? then why is it associated with the ...
6 years, 5 months ago (2014-07-18 09:54:00 UTC) #3
mlamouri (slow - plz ping)
On 2014/07/18 09:54:00, kenneth.christiansen wrote: > The wake lock only affects the screen right? then ...
6 years, 5 months ago (2014-07-18 09:59:25 UTC) #4
Ilya Bogdanovich
On 2014/07/18 03:07:20, abarth wrote: > This path is too large. can you divide it ...
6 years, 5 months ago (2014-07-18 16:20:01 UTC) #5
abarth-chromium
On 2014/07/18 at 16:20:01, bogdanovichiy wrote: > Ok, we'll divide it into a number of ...
6 years, 5 months ago (2014-07-18 18:02:40 UTC) #6
Ilya Bogdanovich
On 2014/07/18 18:02:40, abarth wrote: > On 2014/07/18 at 16:20:01, bogdanovichiy wrote: > > Ok, ...
6 years, 5 months ago (2014-07-21 13:01:17 UTC) #7
redchenko
Please, take a look to Patch 2. This is the base implementation of WakeLock API. ...
6 years, 4 months ago (2014-08-07 14:43:58 UTC) #8
redchenko
Please, take a look at the Patch 3.
6 years, 4 months ago (2014-08-11 17:06:38 UTC) #9
darin (slow to review)
This CL seems to be missing a way to get (or set) the WebWakeLockClient interface. ...
6 years, 4 months ago (2014-08-11 19:47:16 UTC) #10
redchenko
On 2014/08/11 19:47:16, darin wrote: > This CL seems to be missing a way to ...
6 years, 4 months ago (2014-08-12 08:37:22 UTC) #11
mlamouri (slow - plz ping)
(sorry for the late review, I was on vacation) That patch looks great. It's very ...
6 years, 4 months ago (2014-08-18 12:15:53 UTC) #12
redchenko
Mounir, thank you for review! https://codereview.chromium.org/399313003/diff/80001/Source/modules/wake_lock/NavigatorWakeLock.cpp File Source/modules/wake_lock/NavigatorWakeLock.cpp (right): https://codereview.chromium.org/399313003/diff/80001/Source/modules/wake_lock/NavigatorWakeLock.cpp#newcode16 Source/modules/wake_lock/NavigatorWakeLock.cpp:16: : DOMWindowProperty(frame) On 2014/08/18 ...
6 years, 4 months ago (2014-08-19 16:42:21 UTC) #13
redchenko
IPC messages for WakeLock API https://codereview.chromium.org/471763006/
6 years, 4 months ago (2014-08-19 21:26:07 UTC) #14
redchenko
Mounir, please take a look at next CLs: 1) IPC messages for WakeLock API https://codereview.chromium.org/471763006 ...
6 years, 4 months ago (2014-08-19 21:59:34 UTC) #15
redchenko
On 2014/07/18 18:02:40, abarth wrote: > On 2014/07/18 at 16:20:01, bogdanovichiy wrote: > > Ok, ...
6 years, 4 months ago (2014-08-20 09:56:57 UTC) #16
mlamouri (slow - plz ping)
6 years, 3 months ago (2014-09-03 13:12:58 UTC) #17
On 2014/08/20 09:56:57, redchenko wrote:
> On 2014/07/18 18:02:40, abarth wrote:
> > On 2014/07/18 at 16:20:01, bogdanovichiy wrote:
> > > Ok, we'll divide it into a number of patches with tests. May you have at
> least
> > a brief look at this patch - maybe there's something we doing completely
wrong
> > here?
> > 
> > You shouldn't need to modify public/web.  All the interfaces with Chromium
> > should be in public/platform.  That will greatly reduce the amount of
> > boilerplate code in your CL.
> 
> Is it okay to modify public/web/WebFrameClient.h and add an abstract method
> (create WebWakeLockClient)?

Yes, it is okay to add this in WebFrameClient.h:
virtual WebWakeLockClient* webWakeLockClient() { return 0; }

It will then be implemented by content/renderer/render_frame_impl.cc

Redchenko, my understanding is that the API is still in heavy flux. Do you still
want me to review this CL or are you planning to update it to match the latest
discussions?

Powered by Google App Engine
This is Rietveld 408576698