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

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

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
Index: Source/core/frame/PlatformEventController.h
diff --git a/Source/core/frame/DeviceEventControllerBase.h b/Source/core/frame/PlatformEventController.h
similarity index 74%
rename from Source/core/frame/DeviceEventControllerBase.h
rename to Source/core/frame/PlatformEventController.h
index 049b238efc0b321e642e64a9a8c94be59242ea6e..959a0a2650e9cc9567b9f869b7cf9ecbfd4dbe99 100644
--- a/Source/core/frame/DeviceEventControllerBase.h
+++ b/Source/core/frame/PlatformEventController.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef DeviceEventControllerBase_h
-#define DeviceEventControllerBase_h
+#ifndef PlatformEventController_h
+#define PlatformEventController_h
#include "core/page/PageLifecycleObserver.h"
#include "platform/Timer.h"
@@ -15,7 +15,7 @@ namespace blink {
// It watches page visibility and calls stopUpdating when page is not visible.
// It provides a didUpdateData() callback method which is called when new data
// it available.
-class DeviceEventControllerBase : public PageLifecycleObserver {
+class PlatformEventController : public PageLifecycleObserver {
public:
void startUpdating();
void stopUpdating();
@@ -24,8 +24,8 @@ public:
virtual void didUpdateData() = 0;
protected:
- explicit DeviceEventControllerBase(Page*);
- virtual ~DeviceEventControllerBase();
+ explicit PlatformEventController(Page*);
+ virtual ~PlatformEventController();
virtual void registerWithDispatcher() = 0;
virtual void unregisterWithDispatcher() = 0;
@@ -39,12 +39,12 @@ private:
// Inherited from PageLifecycleObserver.
virtual void pageVisibilityChanged() OVERRIDE;
- void oneShotCallback(Timer<DeviceEventControllerBase>*);
+ void oneShotCallback(Timer<PlatformEventController>*);
bool m_isActive;
- Timer<DeviceEventControllerBase> m_timer;
+ Timer<PlatformEventController> m_timer;
};
} // namespace blink
-#endif // DeviceEventControllerBase_h
+#endif // PlatformEventController_h
« no previous file with comments | « Source/core/frame/DeviceSingleWindowEventController.cpp ('k') | Source/core/frame/PlatformEventController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698