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

Unified Diff: Source/core/frame/PlatformEventController.cpp

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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/frame/PlatformEventController.h ('k') | Source/core/frame/PlatformEventDispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PlatformEventController.cpp
diff --git a/Source/core/frame/DeviceEventControllerBase.cpp b/Source/core/frame/PlatformEventController.cpp
similarity index 69%
rename from Source/core/frame/DeviceEventControllerBase.cpp
rename to Source/core/frame/PlatformEventController.cpp
index d9cbced9539de5c32df99f23e04091bf671ebaf4..41efb77d5b6e9e9f052f312b322c722af4036390 100644
--- a/Source/core/frame/DeviceEventControllerBase.cpp
+++ b/Source/core/frame/PlatformEventController.cpp
@@ -3,25 +3,25 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/frame/DeviceEventControllerBase.h"
+#include "core/frame/PlatformEventController.h"
#include "core/page/Page.h"
namespace blink {
-DeviceEventControllerBase::DeviceEventControllerBase(Page* page)
+PlatformEventController::PlatformEventController(Page* page)
: PageLifecycleObserver(page)
, m_hasEventListener(false)
, m_isActive(false)
- , m_timer(this, &DeviceEventControllerBase::oneShotCallback)
+ , m_timer(this, &PlatformEventController::oneShotCallback)
{
}
-DeviceEventControllerBase::~DeviceEventControllerBase()
+PlatformEventController::~PlatformEventController()
{
}
-void DeviceEventControllerBase::oneShotCallback(Timer<DeviceEventControllerBase>* timer)
+void PlatformEventController::oneShotCallback(Timer<PlatformEventController>* timer)
{
ASSERT_UNUSED(timer, timer == &m_timer);
ASSERT(hasLastData());
@@ -30,7 +30,7 @@ void DeviceEventControllerBase::oneShotCallback(Timer<DeviceEventControllerBase>
didUpdateData();
}
-void DeviceEventControllerBase::startUpdating()
+void PlatformEventController::startUpdating()
{
if (m_isActive)
return;
@@ -44,7 +44,7 @@ void DeviceEventControllerBase::startUpdating()
m_isActive = true;
}
-void DeviceEventControllerBase::stopUpdating()
+void PlatformEventController::stopUpdating()
{
if (!m_isActive)
return;
@@ -56,7 +56,7 @@ void DeviceEventControllerBase::stopUpdating()
m_isActive = false;
}
-void DeviceEventControllerBase::pageVisibilityChanged()
+void PlatformEventController::pageVisibilityChanged()
{
if (!m_hasEventListener)
return;
« no previous file with comments | « Source/core/frame/PlatformEventController.h ('k') | Source/core/frame/PlatformEventDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698