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

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

Issue 1318793005: [part 2] Make classes and structures in modules fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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"
11 #include "platform/Supplementable.h" 11 #include "platform/Supplementable.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 16
17 namespace blink { 17 namespace blink {
18 18
19 class FrameView; 19 class FrameView;
20 class ScreenOrientation; 20 class ScreenOrientation;
21 class WebScreenOrientationClient; 21 class WebScreenOrientationClient;
22 22
23 class MODULES_EXPORT ScreenOrientationController final 23 class MODULES_EXPORT ScreenOrientationController final
24 : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController> 24 : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationController>
25 , public WillBeHeapSupplement<LocalFrame> 25 , public WillBeHeapSupplement<LocalFrame>
26 , public LocalFrameLifecycleObserver 26 , public LocalFrameLifecycleObserver
27 , public PlatformEventController { 27 , public PlatformEventController {
28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController); 28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenOrientationController);
29 WTF_MAKE_NONCOPYABLE(ScreenOrientationController); 29 WTF_MAKE_NONCOPYABLE(ScreenOrientationController);
30 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScreenOrientationController);
30 public: 31 public:
31 ~ScreenOrientationController() override; 32 ~ScreenOrientationController() override;
32 33
33 void setOrientation(ScreenOrientation*); 34 void setOrientation(ScreenOrientation*);
34 void notifyOrientationChanged(); 35 void notifyOrientationChanged();
35 36
36 void lock(WebScreenOrientationLockType, WebLockOrientationCallback*); 37 void lock(WebScreenOrientationLockType, WebLockOrientationCallback*);
37 void unlock(); 38 void unlock();
38 39
39 void setOverride(WebScreenOrientationType, unsigned short angle); 40 void setOverride(WebScreenOrientationType, unsigned short angle);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 WebScreenOrientationClient* m_client; 76 WebScreenOrientationClient* m_client;
76 Timer<ScreenOrientationController> m_dispatchEventTimer; 77 Timer<ScreenOrientationController> m_dispatchEventTimer;
77 bool m_override; 78 bool m_override;
78 WebScreenOrientationType m_overrideType; 79 WebScreenOrientationType m_overrideType;
79 unsigned short m_overrideAngle; 80 unsigned short m_overrideAngle;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif // ScreenOrientationController_h 85 #endif // ScreenOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698