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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/DocumentSupplementable.h" 8 #include "core/dom/DocumentSupplementable.h"
9 #include "core/frame/DeviceSingleWindowEventController.h" 9 #include "core/frame/DeviceSingleWindowEventController.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DeviceOrientationData; 13 class DeviceOrientationData;
14 class Event; 14 class Event;
15 15
16 class DeviceOrientationController FINAL : public DeviceSingleWindowEventControll er, public DocumentSupplement { 16 class DeviceOrientationController final : public DeviceSingleWindowEventControll er, public DocumentSupplement {
17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController); 17 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationController);
18 public: 18 public:
19 virtual ~DeviceOrientationController(); 19 virtual ~DeviceOrientationController();
20 20
21 static const char* supplementName(); 21 static const char* supplementName();
22 static DeviceOrientationController& from(Document&); 22 static DeviceOrientationController& from(Document&);
23 23
24 // Inherited from DeviceSingleWindowEventController. 24 // Inherited from DeviceSingleWindowEventController.
25 void didUpdateData() OVERRIDE; 25 void didUpdateData() override;
26 26
27 void setOverride(DeviceOrientationData*); 27 void setOverride(DeviceOrientationData*);
28 void clearOverride(); 28 void clearOverride();
29 29
30 virtual void trace(Visitor*) OVERRIDE; 30 virtual void trace(Visitor*) override;
31 31
32 private: 32 private:
33 explicit DeviceOrientationController(Document&); 33 explicit DeviceOrientationController(Document&);
34 34
35 // Inherited from DeviceEventControllerBase. 35 // Inherited from DeviceEventControllerBase.
36 virtual void registerWithDispatcher() OVERRIDE; 36 virtual void registerWithDispatcher() override;
37 virtual void unregisterWithDispatcher() OVERRIDE; 37 virtual void unregisterWithDispatcher() override;
38 virtual bool hasLastData() OVERRIDE; 38 virtual bool hasLastData() override;
39 39
40 // Inherited from DeviceSingleWindowEventController. 40 // Inherited from DeviceSingleWindowEventController.
41 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const OVERRIDE; 41 virtual PassRefPtrWillBeRawPtr<Event> lastEvent() const override;
42 virtual const AtomicString& eventTypeName() const OVERRIDE; 42 virtual const AtomicString& eventTypeName() const override;
43 virtual bool isNullEvent(Event*) const OVERRIDE; 43 virtual bool isNullEvent(Event*) const override;
44 44
45 DeviceOrientationData* lastData() const; 45 DeviceOrientationData* lastData() const;
46 46
47 PersistentWillBeMember<DeviceOrientationData> m_overrideOrientationData; 47 PersistentWillBeMember<DeviceOrientationData> m_overrideOrientationData;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // DeviceOrientationController_h 52 #endif // DeviceOrientationController_h
OLDNEW
« no previous file with comments | « Source/modules/device_orientation/DeviceMotionEvent.h ('k') | Source/modules/device_orientation/DeviceOrientationData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698