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

Side by Side Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h

Issue 1846913009: HeapSupplements are now just Supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 DeviceOrientationController_h 5 #ifndef DeviceOrientationController_h
6 #define DeviceOrientationController_h 6 #define DeviceOrientationController_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/frame/DeviceSingleWindowEventController.h" 9 #include "core/frame/DeviceSingleWindowEventController.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceOrientationData; 14 class DeviceOrientationData;
15 class DeviceOrientationDispatcher; 15 class DeviceOrientationDispatcher;
16 class Event; 16 class Event;
17 17
18 class MODULES_EXPORT DeviceOrientationController : public DeviceSingleWindowEven tController, public HeapSupplement<Document> { 18 class MODULES_EXPORT DeviceOrientationController : public DeviceSingleWindowEven tController, public Supplement<Document> {
19 USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); 19 USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController);
20 public: 20 public:
21 ~DeviceOrientationController() override; 21 ~DeviceOrientationController() override;
22 22
23 static const char* supplementName(); 23 static const char* supplementName();
24 static DeviceOrientationController& from(Document&); 24 static DeviceOrientationController& from(Document&);
25 25
26 // Inherited from DeviceSingleWindowEventController. 26 // Inherited from DeviceSingleWindowEventController.
27 void didUpdateData() override; 27 void didUpdateData() override;
28 void didAddEventListener(LocalDOMWindow*, const AtomicString& eventType) ove rride; 28 void didAddEventListener(LocalDOMWindow*, const AtomicString& eventType) ove rride;
(...skipping 20 matching lines...) Expand all
49 bool isNullEvent(Event*) const override; 49 bool isNullEvent(Event*) const override;
50 50
51 DeviceOrientationData* lastData() const; 51 DeviceOrientationData* lastData() const;
52 52
53 Member<DeviceOrientationData> m_overrideOrientationData; 53 Member<DeviceOrientationData> m_overrideOrientationData;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // DeviceOrientationController_h 58 #endif // DeviceOrientationController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698