Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: Source/core/testing/Internals.cpp

Issue 16298005: Remove Battery Status API support code from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 86aaef69cbbe872b075f151b00970a1bff3601d1..c97dd4c3348a1d0d570c21962d125b8e15ff5cff 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -103,10 +103,6 @@
#include "wtf/dtoa.h"
#include "wtf/text/StringBuffer.h"
-#if ENABLE(BATTERY_STATUS)
-#include "modules/battery/BatteryController.h"
-#endif
-
#include "core/page/PagePopupController.h"
#include "core/platform/graphics/GraphicsLayer.h"
#include "core/platform/graphics/filters/FilterOperation.h"
@@ -1317,24 +1313,6 @@ void Internals::emitInspectorDidCancelFrame()
inspectorController->didCancelFrame();
}
-void Internals::setBatteryStatus(Document* document, const String& eventType, bool charging, double chargingTime, double dischargingTime, double level, ExceptionCode& ec)
-{
- if (!document || !document->page()) {
- ec = INVALID_ACCESS_ERR;
- return;
- }
-
-#if ENABLE(BATTERY_STATUS)
- BatteryController::from(document->page())->didChangeBatteryStatus(eventType, BatteryStatus::create(charging, chargingTime, dischargingTime, level));
-#else
- UNUSED_PARAM(eventType);
- UNUSED_PARAM(charging);
- UNUSED_PARAM(chargingTime);
- UNUSED_PARAM(dischargingTime);
- UNUSED_PARAM(level);
-#endif
-}
-
bool Internals::hasSpellingMarker(Document* document, int from, int length, ExceptionCode&)
{
if (!document || !document->frame())
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698