Changeset 121828 in webkit


Ignore:
Timestamp:
Jul 3, 2012 10:49:44 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Move BatteryClientEfl from WebKit to WebCore
https://bugs.webkit.org/show_bug.cgi?id=90063

Patch by Christophe Dumez <Christophe Dumez> 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:
Location:
trunk/Source
Files:
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121827 r121828  
     12012-07-03  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Move BatteryClientEfl from WebKit to WebCore
     4        https://bugs.webkit.org/show_bug.cgi?id=90063
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Move BatteryClientEfl class from WebKit to WebCore
     9        so that it can be reused in WebKit2.
     10
     11        No new tests, no behavior change.
     12
     13        * PlatformEfl.cmake:
     14        * platform/efl/BatteryClientEfl.cpp: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.cpp.
     15        (WebCore):
     16        (WebCore::BatteryClientEfl::BatteryClientEfl):
     17        (WebCore::BatteryClientEfl::setController):
     18        (WebCore::BatteryClientEfl::startUpdating):
     19        (WebCore::BatteryClientEfl::stopUpdating):
     20        (WebCore::BatteryClientEfl::batteryControllerDestroyed):
     21        (WebCore::BatteryClientEfl::setBatteryStatus):
     22        (WebCore::BatteryClientEfl::timerFired):
     23        (WebCore::BatteryClientEfl::getBatteryStatus):
     24        (WebCore::BatteryClientEfl::setBatteryClient):
     25        * platform/efl/BatteryClientEfl.h: Renamed from Source/WebKit/efl/WebCoreSupport/BatteryClientEfl.h.
     26        (WebCore):
     27        (BatteryClientEfl):
     28        (WebCore::BatteryClientEfl::~BatteryClientEfl):
     29        (WebCore::BatteryClientEfl::batteryStatus):
     30
    1312012-07-03  Huang Dongsung  <luxtella@company100.net>
    232
  • trunk/Source/WebCore/PlatformEfl.cmake

    r121657 r121828  
    2424  page/efl/EventHandlerEfl.cpp
    2525  platform/Cursor.cpp
     26  platform/efl/BatteryClientEfl.cpp
    2627  platform/efl/ClipboardEfl.cpp
    2728  platform/efl/ColorChooserEfl.cpp
  • trunk/Source/WebCore/platform/efl/BatteryClientEfl.cpp

    r121827 r121828  
    2525#include "BatteryController.h"
    2626#include "EventNames.h"
     27#include <E_Ukit.h>
    2728#include <limits>
    2829
     
    3435    , m_batteryStatusRefreshInterval(1.0)
    3536{
     37}
     38
     39BatteryStatus* BatteryClientEfl::batteryStatus() const
     40{
     41    return m_batteryStatus.get();
    3642}
    3743
  • trunk/Source/WebCore/platform/efl/BatteryClientEfl.h

    r121827 r121828  
    2626#include "BatteryStatus.h"
    2727#include "Timer.h"
    28 #include <E_Ukit.h>
    2928#include <wtf/text/AtomicString.h>
     29
     30typedef struct DBusError DBusError;
    3031
    3132namespace WebCore {
    3233
    3334class BatteryController;
    34 class BatteryStatus;
    3535
    3636class BatteryClientEfl : public BatteryClient {
     
    4545
    4646    void setBatteryStatus(const AtomicString& eventType, PassRefPtr<BatteryStatus>);
    47     BatteryStatus* batteryStatus() { return m_batteryStatus.get(); }
     47    BatteryStatus* batteryStatus() const;
    4848
    4949private:
     
    6060}
    6161
    62 #endif // BATTERY_STATUS
     62#endif // ENABLE(BATTERY_STATUS)
    6363#endif // BatteryClientEfl_h
    6464
  • trunk/Source/WebKit/ChangeLog

    r121725 r121828  
     12012-07-03  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Move BatteryClientEfl from WebKit to WebCore
     4        https://bugs.webkit.org/show_bug.cgi?id=90063
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Move BatteryClientEfl class from WebKit to WebCore
     9        so that it can be reused in WebKit2.
     10
     11        * PlatformEfl.cmake:
     12
    1132012-07-02  Xiaobo Wang  <xbwang@torchmobile.com.cn>
    214
  • trunk/Source/WebKit/PlatformEfl.cmake

    r121702 r121828  
    162162IF (ENABLE_BATTERY_STATUS)
    163163    LIST(APPEND WebKit_INCLUDE_DIRECTORIES ${WEBCORE_DIR}/Modules/battery)
    164     LIST(APPEND WebKit_SOURCES efl/WebCoreSupport/BatteryClientEfl.cpp)
    165164ENDIF ()
    166165
Note: See TracChangeset for help on using the changeset viewer.