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

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

Issue 2661663003: Send orientation change events to sub frames even if parent isn't active. (Closed)
Patch Set: Created 3 years, 10 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 ScreenOrientationControllerImpl_h 5 #ifndef ScreenOrientationControllerImpl_h
6 #define ScreenOrientationControllerImpl_h 6 #define ScreenOrientationControllerImpl_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Inherited from ContextLifecycleObserver and PageVisibilityObserver. 57 // Inherited from ContextLifecycleObserver and PageVisibilityObserver.
58 void contextDestroyed(ExecutionContext*) override; 58 void contextDestroyed(ExecutionContext*) override;
59 void pageVisibilityChanged() override; 59 void pageVisibilityChanged() override;
60 60
61 void notifyDispatcher(); 61 void notifyDispatcher();
62 62
63 void updateOrientation(); 63 void updateOrientation();
64 64
65 void dispatchEventTimerFired(TimerBase*); 65 void dispatchEventTimerFired(TimerBase*);
66 66
67 bool isActive() const;
68 bool isVisible() const;
67 bool isActiveAndVisible() const; 69 bool isActiveAndVisible() const;
68 70
69 Member<ScreenOrientation> m_orientation; 71 Member<ScreenOrientation> m_orientation;
70 WebScreenOrientationClient* m_client; 72 WebScreenOrientationClient* m_client;
71 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer; 73 TaskRunnerTimer<ScreenOrientationControllerImpl> m_dispatchEventTimer;
72 bool m_activeLock = false; 74 bool m_activeLock = false;
73 }; 75 };
74 76
75 } // namespace blink 77 } // namespace blink
76 78
77 #endif // ScreenOrientationControllerImpl_h 79 #endif // ScreenOrientationControllerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698