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

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

Issue 2738453004: Avoid using declarations in headers which introduce symbol conflicts. (Closed)
Patch Set: Created 3 years, 9 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 "core/inspector/protocol/DeviceOrientation.h" 9 #include "core/inspector/protocol/DeviceOrientation.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceOrientationController; 14 class DeviceOrientationController;
15 class InspectedFrames; 15 class InspectedFrames;
16 16
17 class MODULES_EXPORT DeviceOrientationInspectorAgent final 17 class MODULES_EXPORT DeviceOrientationInspectorAgent final
18 : public InspectorBaseAgent<protocol::DeviceOrientation::Metainfo> { 18 : public InspectorBaseAgent<protocol::DeviceOrientation::Metainfo> {
19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
20 20
21 public: 21 public:
22 explicit DeviceOrientationInspectorAgent(InspectedFrames*); 22 explicit DeviceOrientationInspectorAgent(InspectedFrames*);
23 ~DeviceOrientationInspectorAgent() override; 23 ~DeviceOrientationInspectorAgent() override;
24 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
25 25
26 // Protocol methods. 26 // Protocol methods.
27 Response setDeviceOrientationOverride(double, double, double) override; 27 protocol::Response setDeviceOrientationOverride(double,
28 Response clearDeviceOrientationOverride() override; 28 double,
29 double) override;
30 protocol::Response clearDeviceOrientationOverride() override;
29 31
30 Response disable() override; 32 protocol::Response disable() override;
31 void restore() override; 33 void restore() override;
32 void didCommitLoadForLocalFrame(LocalFrame*) override; 34 void didCommitLoadForLocalFrame(LocalFrame*) override;
33 35
34 private: 36 private:
35 DeviceOrientationController* controller(); 37 DeviceOrientationController* controller();
36 38
37 Member<InspectedFrames> m_inspectedFrames; 39 Member<InspectedFrames> m_inspectedFrames;
38 }; 40 };
39 41
40 } // namespace blink 42 } // namespace blink
41 43
42 #endif // !defined(DeviceOrientationInspectorAgent_h) 44 #endif // !defined(DeviceOrientationInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698