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

Side by Side Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ScreenOrientationController_h 5 #ifndef ScreenOrientationController_h
6 #define ScreenOrientationController_h 6 #define ScreenOrientationController_h
7 7
8 #include "core/frame/LocalFrameLifecycleObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "core/frame/PlatformEventController.h" 9 #include "core/frame/PlatformEventController.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool hasLastData() override; 54 bool hasLastData() override;
55 void pageVisibilityChanged() override; 55 void pageVisibilityChanged() override;
56 56
57 // Inherited from LocalFrameLifecycleObserver. 57 // Inherited from LocalFrameLifecycleObserver.
58 void contextDestroyed() override; 58 void contextDestroyed() override;
59 59
60 void notifyDispatcher(); 60 void notifyDispatcher();
61 61
62 void updateOrientation(); 62 void updateOrientation();
63 63
64 void dispatchEventTimerFired(Timer<ScreenOrientationController>*); 64 void dispatchEventTimerFired(TimerBase*);
65 65
66 bool isActiveAndVisible() const; 66 bool isActiveAndVisible() const;
67 67
68 Member<ScreenOrientation> m_orientation; 68 Member<ScreenOrientation> m_orientation;
69 WebScreenOrientationClient* m_client; 69 WebScreenOrientationClient* m_client;
70 Timer<ScreenOrientationController> m_dispatchEventTimer; 70 Timer<ScreenOrientationController> m_dispatchEventTimer;
71 }; 71 };
72 72
73 } // namespace blink 73 } // namespace blink
74 74
75 #endif // ScreenOrientationController_h 75 #endif // ScreenOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698