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

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

Issue 2625043002: Use a new Supplement constructor in ScreenOrientationController (Closed)
Patch Set: temp Created 3 years, 11 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"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "platform/Timer.h" 12 #include "platform/Timer.h"
13 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback. h" 13 #include "public/platform/modules/screen_orientation/WebLockOrientationCallback. h"
14 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h" 14 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h"
15 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h" 15 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
16 #include <memory> 16 #include <memory>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ScreenOrientation; 20 class ScreenOrientation;
21 class WebScreenOrientationClient; 21 class WebScreenOrientationClient;
22 22
23 class MODULES_EXPORT ScreenOrientationControllerImpl final 23 class MODULES_EXPORT ScreenOrientationControllerImpl final
24 : public GarbageCollectedFinalized<ScreenOrientationControllerImpl>, 24 : public ScreenOrientationController,
25 public ScreenOrientationController,
26 public ContextLifecycleObserver, 25 public ContextLifecycleObserver,
27 public PlatformEventController { 26 public PlatformEventController {
28 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationControllerImpl); 27 USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationControllerImpl);
29 WTF_MAKE_NONCOPYABLE(ScreenOrientationControllerImpl); 28 WTF_MAKE_NONCOPYABLE(ScreenOrientationControllerImpl);
30 29
31 public: 30 public:
32 ~ScreenOrientationControllerImpl() override; 31 ~ScreenOrientationControllerImpl() override;
33 32
34 void setOrientation(ScreenOrientation*); 33 void setOrientation(ScreenOrientation*);
35 void notifyOrientationChanged(); 34 void notifyOrientationChanged();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 69
71 Member<ScreenOrientation> m_orientation; 70 Member<ScreenOrientation> m_orientation;
72 WebScreenOrientationClient* m_client; 71 WebScreenOrientationClient* m_client;
73 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer; 72 Timer<ScreenOrientationControllerImpl> m_dispatchEventTimer;
74 bool m_activeLock = false; 73 bool m_activeLock = false;
75 }; 74 };
76 75
77 } // namespace blink 76 } // namespace blink
78 77
79 #endif // ScreenOrientationControllerImpl_h 78 #endif // ScreenOrientationControllerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698