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

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

Issue 2388693002: Make DOMWindowProperty a thin wrapper of ContextLifecycleObserver
Patch Set: temp Created 4 years 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 ScreenOrientationControllerImpl_h 5 #ifndef ScreenOrientationControllerImpl_h
6 #define ScreenOrientationControllerImpl_h 6 #define ScreenOrientationControllerImpl_h
7 7
8 #include "core/frame/DOMWindowProperty.h" 8 #include "core/frame/DOMWindowProperty.h"
9 #include "core/frame/PlatformEventController.h" 9 #include "core/frame/PlatformEventController.h"
10 #include "core/frame/ScreenOrientationController.h" 10 #include "core/frame/ScreenOrientationController.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 static WebScreenOrientationType computeOrientation(const IntRect&, uint16_t); 51 static WebScreenOrientationType computeOrientation(const IntRect&, uint16_t);
52 52
53 // Inherited from PlatformEventController. 53 // Inherited from PlatformEventController.
54 void didUpdateData() override; 54 void didUpdateData() override;
55 void registerWithDispatcher() override; 55 void registerWithDispatcher() override;
56 void unregisterWithDispatcher() override; 56 void unregisterWithDispatcher() override;
57 bool hasLastData() override; 57 bool hasLastData() override;
58 void pageVisibilityChanged() override; 58 void pageVisibilityChanged() override;
59 59
60 // Inherited from DOMWindowProperty. 60 // Inherited from DOMWindowProperty.
61 void frameDestroyed() override; 61 void contextDestroyed() override;
62 62
63 void notifyDispatcher(); 63 void notifyDispatcher();
64 64
65 void updateOrientation(); 65 void updateOrientation();
66 66
67 void dispatchEventTimerFired(TimerBase*); 67 void dispatchEventTimerFired(TimerBase*);
68 68
69 bool isActiveAndVisible() const; 69 bool isActiveAndVisible() const;
70 70
71 Member<ScreenOrientation> m_orientation; 71 Member<ScreenOrientation> m_orientation;
72 WebScreenOrientationClient* m_client; 72 WebScreenOrientationClient* m_client;
73 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; 73 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer;
74 bool m_activeLock = false; 74 bool m_activeLock = false;
75 }; 75 };
76 76
77 } // namespace blink 77 } // namespace blink
78 78
79 #endif // ScreenOrientationControllerImpl_h 79 #endif // ScreenOrientationControllerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698