[BlackBerry] Add Battery Status API support
authorrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Apr 2012 15:30:43 +0000 (15:30 +0000)
committerrwlbuis@webkit.org <rwlbuis@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 Apr 2012 15:30:43 +0000 (15:30 +0000)
commit13d2e6279a74d930cf59f4f22ea9b38b2f412a6b
treeacbbdc1bfcbe4efe1082f958eb05f29b0d065f6b
parent177f14818b62d90e8aafce1c4a3259607b250622
[BlackBerry] Add Battery Status API support
https://bugs.webkit.org/show_bug.cgi?id=82615

Reviewed by George Staikos.

.:

Enable BATTERY_STATUS.

* Source/cmake/OptionsBlackBerry.cmake:

Source/WebKit:

Add BatteryClientBlackBerry.cpp to the build.

* PlatformBlackBerry.cmake:

Source/WebKit/blackberry:

Add client implementation for Battery API.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPagePrivate::init):  initialize BatteryClient.
* WebCoreSupport/BatteryClientBlackBerry.cpp: Added.
(WebCore):
(WebCore::BatteryClientBlackBerry::BatteryClientBlackBerry):
(WebCore::BatteryClientBlackBerry::setController):
(WebCore::BatteryClientBlackBerry::startUpdating):
(WebCore::BatteryClientBlackBerry::stopUpdating):
(WebCore::BatteryClientBlackBerry::batteryControllerDestroyed):
(WebCore::BatteryClientBlackBerry::onLevelChange):
(WebCore::BatteryClientBlackBerry::onChargingChange):
(WebCore::BatteryClientBlackBerry::onChargingTimeChange):
(WebCore::BatteryClientBlackBerry::onDischargingTimeChange):
* WebCoreSupport/BatteryClientBlackBerry.h: Added.
(WebCore):
(BatteryClientBlackBerry):
(WebCore::BatteryClientBlackBerry::~BatteryClientBlackBerry):

Tools:

Enable BATTERY_STATUS.

* Scripts/build-webkit:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@113547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ChangeLog
Source/WebKit/ChangeLog
Source/WebKit/PlatformBlackBerry.cmake
Source/WebKit/blackberry/Api/WebPage.cpp
Source/WebKit/blackberry/ChangeLog
Source/WebKit/blackberry/WebCoreSupport/BatteryClientBlackBerry.cpp [new file with mode: 0644]
Source/WebKit/blackberry/WebCoreSupport/BatteryClientBlackBerry.h [new file with mode: 0644]
Source/cmake/OptionsBlackBerry.cmake
Tools/ChangeLog
Tools/Scripts/build-webkit