Bug 95582

Summary: [Gtk] Add Battery Status API support
Product: WebKit Reporter: José Dapena Paz <jdapena>
Component: WebKitGTKAssignee: José Dapena Paz <jdapena>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, changseok, gustavo, jdapena, mrobinson, philn, webkit.review.bot, xan.lopez, zan
Priority: P2 Keywords: Gtk, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 95937, 115628, 115718, 115719, 115720, 125453    
Bug Blocks:    
Attachments:
Description Flags
Patch pnormand: review-, webkit-ews: commit-queue-

José Dapena Paz
Reported 2012-08-31 09:09:22 PDT
Battery Status API allows web applications to track power status of the device. It allows to behave different depending on that (i.e. avoid expensive calculations or polling if battery is low and discharging). Specs: http://dvcs.w3.org/hg/dap/raw-file/tip/battery/Overview.html
Attachments
Patch (44.18 KB, patch)
2012-09-04 10:50 PDT, José Dapena Paz
pnormand: review-
webkit-ews: commit-queue-
José Dapena Paz
Comment 1 2012-09-04 10:50:52 PDT
WebKit Review Bot
Comment 2 2012-09-04 10:54:49 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Early Warning System Bot
Comment 3 2012-09-04 11:13:55 PDT
Early Warning System Bot
Comment 4 2012-09-04 11:17:24 PDT
Build Bot
Comment 5 2012-09-04 11:17:33 PDT
Build Bot
Comment 6 2012-09-04 12:19:08 PDT
Zan Dobersek
Comment 7 2013-01-24 08:55:46 PST
Can we get this work moving again? I can help if help is needed.
Philippe Normand
Comment 8 2013-04-12 12:15:22 PDT
Comment on attachment 162059 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162059&action=review > Source/WebCore/ChangeLog:13 > + Test are disabled, as there is a linking issue related to > + WebCoreInternals. It'd be nice to figure this issue out. Also, not sure we want to add new features in WK1 at this point :/
Zan Dobersek
Comment 9 2013-04-13 10:05:00 PDT
Comment on attachment 162059 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162059&action=review The specification is a candidate recommendation so I think it would be great if we can get the implementation up and working. >> Source/WebCore/ChangeLog:13 >> + WebCoreInternals. > > It'd be nice to figure this issue out. Also, not sure we want to add new features in WK1 at this point :/ I think this is simply a matter of exporting the undefined symbols, nothing uncommon really.
Zan Dobersek
Comment 10 2013-04-13 10:06:28 PDT
(In reply to comment #9) > The specification is a candidate recommendation so I think it would be great if we can get the implementation up and working. > Link to the specification: http://www.w3.org/TR/battery-status/
ChangSeok Oh
Comment 11 2013-08-23 10:50:32 PDT
Oops. I didn't notice this movement supporting BatteryStatus before.. :p What's going on this? I've also worked a patch for this feature. If you guys don't mind, I'd like to post my patch somewhere. :)
Zan Dobersek
Comment 12 2013-08-23 11:09:09 PDT
Shame about the duplicated work. My set of patches is complete, but still requires reviewing. The patches are spread in the bugs that are blocking this one.
Zan Dobersek
Comment 13 2013-12-11 10:22:22 PST
Aaand it's done.
ChangSeok Oh
Comment 14 2013-12-12 00:06:14 PST
(In reply to comment #13) > Aaand it's done. Zan, great works! :)
Note You need to log in before you can comment on or make changes to this bug.