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

Unified Diff: Source/modules/screen_orientation/ScreenOrientationController.h

Issue 1089523002: ScreenOrientationController: task-based dispatching of change events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/modules/screen_orientation/ScreenOrientationController.h
diff --git a/Source/modules/screen_orientation/ScreenOrientationController.h b/Source/modules/screen_orientation/ScreenOrientationController.h
index 584dbb24172ed0f8e825bf530b35cc3f96329226..78915cc0594470e57add8310a1736273fbeae22e 100644
--- a/Source/modules/screen_orientation/ScreenOrientationController.h
+++ b/Source/modules/screen_orientation/ScreenOrientationController.h
@@ -8,7 +8,6 @@
#include "core/frame/LocalFrameLifecycleObserver.h"
#include "core/frame/PlatformEventController.h"
#include "platform/Supplementable.h"
-#include "platform/Timer.h"
#include "public/platform/WebLockOrientationCallback.h"
#include "public/platform/WebScreenOrientationLockType.h"
#include "public/platform/WebScreenOrientationType.h"
@@ -60,13 +59,13 @@ private:
void updateOrientation();
- void dispatchEventTimerFired(Timer<ScreenOrientationController>*);
+ void dispatchChangeEvent();
bool isActiveAndVisible() const;
PersistentWillBeMember<ScreenOrientation> m_orientation;
WebScreenOrientationClient* m_client;
- Timer<ScreenOrientationController> m_dispatchEventTimer;
+ bool m_isDispatchingEvent;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698