Changeset 160437 in webkit


Ignore:
Timestamp:
Dec 11, 2013 8:46:18 AM (10 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK][WK1] Add an empty BatteryClientGtk
https://bugs.webkit.org/show_bug.cgi?id=115628

Reviewed by Martin Robinson.

Add an empty BatteryClientGtk, implementing the WebCore's BatteryClient interface.
The implementation is left empty intentionally as the WebKit1 port is now in maintenance
mode and there's no desire to support new features under it. It's still required as the
WebCore implementation of the Battery Status API expects an existing BatteryClient, even
if the latter does not set up a provider that would then serve information about the battery
state.

  • GNUmakefile.am: Add the BatteryClientGtk source files to the build.
  • WebCoreSupport/BatteryClientGtk.cpp: Added.

(WebKit):
(WebKit::BatteryClientGtk::BatteryClientGtk):
(WebKit::BatteryClientGtk::startUpdating):
(WebKit::BatteryClientGtk::stopUpdating):
(WebKit::BatteryClientGtk::batteryControllerDestroyed):

  • WebCoreSupport/BatteryClientGtk.h: Added.

(WebKit):
(BatteryClientGtk):

  • webkit/webkitwebview.cpp:

(webkit_web_view_init): Set up the BatteryClientGtk for the new WebCore::Page object.

Location:
trunk/Source/WebKit/gtk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r160434 r160437  
     12013-12-11  José Dapena Paz  <jdapena@igalia.com> and Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK][WK1] Add an empty BatteryClientGtk
     4        https://bugs.webkit.org/show_bug.cgi?id=115628
     5
     6        Reviewed by Martin Robinson.
     7
     8        Add an empty BatteryClientGtk, implementing the WebCore's BatteryClient interface.
     9        The implementation is left empty intentionally as the WebKit1 port is now in maintenance
     10        mode and there's no desire to support new features under it. It's still required as the
     11        WebCore implementation of the Battery Status API expects an existing BatteryClient, even
     12        if the latter does not set up a provider that would then serve information about the battery
     13        state.
     14
     15        * GNUmakefile.am: Add the BatteryClientGtk source files to the build.
     16        * WebCoreSupport/BatteryClientGtk.cpp: Added.
     17        (WebKit):
     18        (WebKit::BatteryClientGtk::BatteryClientGtk):
     19        (WebKit::BatteryClientGtk::startUpdating):
     20        (WebKit::BatteryClientGtk::stopUpdating):
     21        (WebKit::BatteryClientGtk::batteryControllerDestroyed):
     22        * WebCoreSupport/BatteryClientGtk.h: Added.
     23        (WebKit):
     24        (BatteryClientGtk):
     25        * webkit/webkitwebview.cpp:
     26        (webkit_web_view_init): Set up the BatteryClientGtk for the new WebCore::Page object.
     27
    1282013-12-11  Brendan Long  <b.long@cablelabs.com>
    229
  • trunk/Source/WebKit/gtk/GNUmakefile.am

    r157711 r160437  
    193193        Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp \
    194194        Source/WebKit/gtk/WebCoreSupport/AssertMatchingEnums.cpp \
     195        Source/WebKit/gtk/WebCoreSupport/BatteryClientGtk.cpp \
     196        Source/WebKit/gtk/WebCoreSupport/BatteryClientGtk.h \
    195197        Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \
    196198        Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \
  • trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp

    r160434 r160437  
    3636#include "ArchiveResource.h"
    3737#include "BackForwardList.h"
     38#include "BatteryClientGtk.h"
    3839#include "CairoUtilities.h"
    3940#include "Chrome.h"
     
    38383839#endif
    38393840
     3841#if ENABLE(BATTERY_STATUS)
     3842    WebCore::provideBatteryTo(priv->corePage, new BatteryClientGtk);
     3843#endif
     3844
    38403845    if (DumpRenderTreeSupportGtk::dumpRenderTreeModeEnabled()) {
    38413846        // Set some testing-specific settings
Note: See TracChangeset for help on using the changeset viewer.