https://bugs.webkit.org/show_bug.cgi?id=90063
Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-07-03
Reviewed by Kenneth Rohde Christiansen.
Move BatteryClientEfl class from WebKit to WebCore
so that it can be reused in WebKit2.
Source/WebCore:
No new tests, no behavior change.
* PlatformEfl.cmake:
* platform/efl/BatteryClientEfl.cpp: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.cpp.
(WebCore):
(WebCore::BatteryClientEfl::BatteryClientEfl):
(WebCore::BatteryClientEfl::setController):
(WebCore::BatteryClientEfl::startUpdating):
(WebCore::BatteryClientEfl::stopUpdating):
(WebCore::BatteryClientEfl::batteryControllerDestroyed):
(WebCore::BatteryClientEfl::setBatteryStatus):
(WebCore::BatteryClientEfl::timerFired):
(WebCore::BatteryClientEfl::getBatteryStatus):
(WebCore::BatteryClientEfl::setBatteryClient):
* platform/efl/BatteryClientEfl.h: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.h.
(WebCore):
(BatteryClientEfl):
(WebCore::BatteryClientEfl::~BatteryClientEfl):
(WebCore::BatteryClientEfl::batteryStatus):
Source/WebKit:
* PlatformEfl.cmake:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121828
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-07-03 Christophe Dumez <christophe.dumez@intel.com>
+
+ [EFL] Move BatteryClientEfl from WebKit to WebCore
+ https://bugs.webkit.org/show_bug.cgi?id=90063
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Move BatteryClientEfl class from WebKit to WebCore
+ so that it can be reused in WebKit2.
+
+ No new tests, no behavior change.
+
+ * PlatformEfl.cmake:
+ * platform/efl/BatteryClientEfl.cpp: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.cpp.
+ (WebCore):
+ (WebCore::BatteryClientEfl::BatteryClientEfl):
+ (WebCore::BatteryClientEfl::setController):
+ (WebCore::BatteryClientEfl::startUpdating):
+ (WebCore::BatteryClientEfl::stopUpdating):
+ (WebCore::BatteryClientEfl::batteryControllerDestroyed):
+ (WebCore::BatteryClientEfl::setBatteryStatus):
+ (WebCore::BatteryClientEfl::timerFired):
+ (WebCore::BatteryClientEfl::getBatteryStatus):
+ (WebCore::BatteryClientEfl::setBatteryClient):
+ * platform/efl/BatteryClientEfl.h: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.h.
+ (WebCore):
+ (BatteryClientEfl):
+ (WebCore::BatteryClientEfl::~BatteryClientEfl):
+ (WebCore::BatteryClientEfl::batteryStatus):
+
2012-07-03 Huang Dongsung <luxtella@company100.net>
Add a comment in order to clarify why
page/efl/DragControllerEfl.cpp
page/efl/EventHandlerEfl.cpp
platform/Cursor.cpp
+ platform/efl/BatteryClientEfl.cpp
platform/efl/ClipboardEfl.cpp
platform/efl/ColorChooserEfl.cpp
platform/efl/ContextMenuEfl.cpp
#include "BatteryController.h"
#include "EventNames.h"
+#include <E_Ukit.h>
#include <limits>
namespace WebCore {
{
}
+BatteryStatus* BatteryClientEfl::batteryStatus() const
+{
+ return m_batteryStatus.get();
+}
+
void BatteryClientEfl::setController(BatteryController* controller)
{
m_controller = controller;
#include "BatteryClient.h"
#include "BatteryStatus.h"
#include "Timer.h"
-#include <E_Ukit.h>
#include <wtf/text/AtomicString.h>
+typedef struct DBusError DBusError;
+
namespace WebCore {
class BatteryController;
-class BatteryStatus;
class BatteryClientEfl : public BatteryClient {
public:
virtual void batteryControllerDestroyed();
void setBatteryStatus(const AtomicString& eventType, PassRefPtr<BatteryStatus>);
- BatteryStatus* batteryStatus() { return m_batteryStatus.get(); }
+ BatteryStatus* batteryStatus() const;
private:
void timerFired(Timer<BatteryClientEfl>*);
}
-#endif // BATTERY_STATUS
+#endif // ENABLE(BATTERY_STATUS)
#endif // BatteryClientEfl_h
+2012-07-03 Christophe Dumez <christophe.dumez@intel.com>
+
+ [EFL] Move BatteryClientEfl from WebKit to WebCore
+ https://bugs.webkit.org/show_bug.cgi?id=90063
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ Move BatteryClientEfl class from WebKit to WebCore
+ so that it can be reused in WebKit2.
+
+ * PlatformEfl.cmake:
+
2012-07-02 Xiaobo Wang <xbwang@torchmobile.com.cn>
[BlackBerry] Use PUBLIC_BUILD to enable/disable DRT
IF (ENABLE_BATTERY_STATUS)
LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${WEBCORE_DIR}/Modules/battery)
- LIST(APPEND WebKit_SOURCES efl/WebCoreSupport/BatteryClientEfl.cpp)
ENDIF ()
IF (ENABLE_REGISTER_PROTOCOL_HANDLER)