-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=90760 Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-09 Reviewed by Hajime Morita. Source/WebCore: Rename BatteryClientEfl to BatteryProviderEfl and remove dependency on BatteryController by introducing the BatteryProviderEflClient interface. This will allow reusing the BatteryProviderEfl class in WebKit2. No new tests. Already tested by batterystatus/*. * PlatformEfl.cmake: * platform/efl/BatteryProviderEfl.cpp: Renamed from Source/WebCore/platform/efl/BatteryClientEfl.cpp. (WebCore): (WebCore::BatteryProviderEfl::BatteryProviderEfl): (WebCore::BatteryProviderEfl::batteryStatus): (WebCore::BatteryProviderEfl::startUpdating): (WebCore::BatteryProviderEfl::stopUpdating): (WebCore::BatteryProviderEfl::setBatteryStatus): (WebCore::BatteryProviderEfl::timerFired): (WebCore::BatteryProviderEfl::getBatteryStatus): (WebCore::BatteryProviderEfl::setBatteryClient): * platform/efl/BatteryProviderEfl.h: Copied from Source/WebCore/platform/efl/BatteryClientEfl.h. (WebCore): (BatteryProviderEfl): (WebCore::BatteryProviderEfl::~BatteryProviderEfl): * platform/efl/BatteryProviderEflClient.h: Added. (WebCore): (BatteryProviderEflClient): Source/WebKit: Add BatteryClientEfl to PlatformEfl.cmake. * PlatformEfl.cmake: Source/WebKit/efl: Add BatteryClientEfl to WebKit, which uses BatteryProviderEfl from WebCore internally. * WebCoreSupport/BatteryClientEfl.cpp: Added. (BatteryClientEfl::BatteryClientEfl): (BatteryClientEfl::setController): (BatteryClientEfl::startUpdating): (BatteryClientEfl::stopUpdating): (BatteryClientEfl::batteryControllerDestroyed): (BatteryClientEfl::didChangeBatteryStatus): * WebCoreSupport/BatteryClientEfl.h: Renamed from Source/WebCore/platform/efl/BatteryClientEfl.h. (WebCore): (BatteryClientEfl): (BatteryClientEfl::~BatteryClientEfl): * ewk/ewk_view.cpp: (_ewk_view_priv_new): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122197 268f45cc-cd09-0410-ab3c-d52691b4dbfc
383c3b01