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

Side by Side Diff: Source/modules/device_orientation/DeviceOrientationInspectorAgent.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 DeviceOrientationInspectorAgent_h 5 #ifndef DeviceOrientationInspectorAgent_h
6 #define DeviceOrientationInspectorAgent_h 6 #define DeviceOrientationInspectorAgent_h
7 7
8 #include "core/inspector/InspectorBaseAgent.h" 8 #include "core/inspector/InspectorBaseAgent.h"
9 #include "wtf/text/WTFString.h" 9 #include "wtf/text/WTFString.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DeviceOrientationController; 13 class DeviceOrientationController;
14 class Page; 14 class Page;
15 15
16 typedef String ErrorString; 16 typedef String ErrorString;
17 17
18 class DeviceOrientationInspectorAgent FINAL : public InspectorBaseAgent<DeviceOr ientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCo mmandHandler { 18 class DeviceOrientationInspectorAgent final : public InspectorBaseAgent<DeviceOr ientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCo mmandHandler {
19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
20 public: 20 public:
21 static void provideTo(Page&); 21 static void provideTo(Page&);
22 22
23 virtual ~DeviceOrientationInspectorAgent(); 23 virtual ~DeviceOrientationInspectorAgent();
24 24
25 // Protocol methods. 25 // Protocol methods.
26 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub le) OVERRIDE; 26 virtual void setDeviceOrientationOverride(ErrorString*, double, double, doub le) override;
27 virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE; 27 virtual void clearDeviceOrientationOverride(ErrorString*) override;
28 28
29 // Inspector Controller API. 29 // Inspector Controller API.
30 virtual void clearFrontend() OVERRIDE; 30 virtual void clearFrontend() override;
31 virtual void restore() OVERRIDE; 31 virtual void restore() override;
32 virtual void didCommitLoadForMainFrame() OVERRIDE; 32 virtual void didCommitLoadForMainFrame() override;
33 33
34 private: 34 private:
35 explicit DeviceOrientationInspectorAgent(Page&); 35 explicit DeviceOrientationInspectorAgent(Page&);
36 DeviceOrientationController& controller(); 36 DeviceOrientationController& controller();
37 Page& m_page; 37 Page& m_page;
38 }; 38 };
39 39
40 } // namespace blink 40 } // namespace blink
41 41
42 42
43 #endif // !defined(DeviceOrientationInspectorAgent_h) 43 #endif // !defined(DeviceOrientationInspectorAgent_h)
OLDNEW
« no previous file with comments | « Source/modules/device_orientation/DeviceOrientationEvent.h ('k') | Source/modules/device_orientation/DeviceRotationRate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698