Changeset 160437 in webkit
- Timestamp:
- Dec 11, 2013 8:46:18 AM (10 years ago)
- Location:
- trunk/Source/WebKit/gtk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/gtk/ChangeLog
r160434 r160437 1 2013-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 1 28 2013-12-11 Brendan Long <b.long@cablelabs.com> 2 29 -
trunk/Source/WebKit/gtk/GNUmakefile.am
r157711 r160437 193 193 Source/WebKit/gtk/WebCoreSupport/AcceleratedCompositingContextGL.cpp \ 194 194 Source/WebKit/gtk/WebCoreSupport/AssertMatchingEnums.cpp \ 195 Source/WebKit/gtk/WebCoreSupport/BatteryClientGtk.cpp \ 196 Source/WebKit/gtk/WebCoreSupport/BatteryClientGtk.h \ 195 197 Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \ 196 198 Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \ -
trunk/Source/WebKit/gtk/webkit/webkitwebview.cpp
r160434 r160437 36 36 #include "ArchiveResource.h" 37 37 #include "BackForwardList.h" 38 #include "BatteryClientGtk.h" 38 39 #include "CairoUtilities.h" 39 40 #include "Chrome.h" … … 3838 3839 #endif 3839 3840 3841 #if ENABLE(BATTERY_STATUS) 3842 WebCore::provideBatteryTo(priv->corePage, new BatteryClientGtk); 3843 #endif 3844 3840 3845 if (DumpRenderTreeSupportGtk::dumpRenderTreeModeEnabled()) { 3841 3846 // Set some testing-specific settings
Note: See TracChangeset
for help on using the changeset viewer.