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

Unified Diff: Source/core/frame/PlatformEventDispatcher.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/PlatformEventDispatcher.h ('k') | Source/modules/battery/BatteryDispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/PlatformEventDispatcher.cpp
diff --git a/Source/core/frame/DeviceEventDispatcherBase.cpp b/Source/core/frame/PlatformEventDispatcher.cpp
similarity index 79%
rename from Source/core/frame/DeviceEventDispatcherBase.cpp
rename to Source/core/frame/PlatformEventDispatcher.cpp
index d10cb8910e1a1c8b7e6205f4ca341336f7157104..40267d35c5b81aacc7668d51895421c0130d04b4 100644
--- a/Source/core/frame/DeviceEventDispatcherBase.cpp
+++ b/Source/core/frame/PlatformEventDispatcher.cpp
@@ -3,24 +3,24 @@
// found in the LICENSE file.
#include "config.h"
-#include "core/frame/DeviceEventDispatcherBase.h"
+#include "core/frame/PlatformEventDispatcher.h"
-#include "core/frame/DeviceEventControllerBase.h"
+#include "core/frame/PlatformEventController.h"
#include "wtf/TemporaryChange.h"
namespace blink {
-DeviceEventDispatcherBase::DeviceEventDispatcherBase()
+PlatformEventDispatcher::PlatformEventDispatcher()
: m_needsPurge(false)
, m_isDispatching(false)
{
}
-DeviceEventDispatcherBase::~DeviceEventDispatcherBase()
+PlatformEventDispatcher::~PlatformEventDispatcher()
{
}
-void DeviceEventDispatcherBase::addController(DeviceEventControllerBase* controller)
+void PlatformEventDispatcher::addController(PlatformEventController* controller)
{
bool wasEmpty = m_controllers.isEmpty();
if (!m_controllers.contains(controller))
@@ -29,7 +29,7 @@ void DeviceEventDispatcherBase::addController(DeviceEventControllerBase* control
startListening();
}
-void DeviceEventDispatcherBase::removeController(DeviceEventControllerBase* controller)
+void PlatformEventDispatcher::removeController(PlatformEventController* controller)
{
// Do not actually remove the controller from the vector, instead zero them out.
// The zeros are removed in these two cases:
@@ -48,7 +48,7 @@ void DeviceEventDispatcherBase::removeController(DeviceEventControllerBase* cont
purgeControllers();
}
-void DeviceEventDispatcherBase::purgeControllers()
+void PlatformEventDispatcher::purgeControllers()
{
ASSERT(m_needsPurge);
@@ -68,7 +68,7 @@ void DeviceEventDispatcherBase::purgeControllers()
stopListening();
}
-void DeviceEventDispatcherBase::notifyControllers()
+void PlatformEventDispatcher::notifyControllers()
{
{
TemporaryChange<bool> changeIsDispatching(m_isDispatching, true);
« no previous file with comments | « Source/core/frame/PlatformEventDispatcher.h ('k') | Source/modules/battery/BatteryDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698