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

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

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "wtf/text/WTFString.h" 10 #include "wtf/text/WTFString.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceOrientationController; 14 class DeviceOrientationController;
15 class Page; 15 class Page;
16 16
17 17
18 class MODULES_EXPORT DeviceOrientationInspectorAgent final : public InspectorBas eAgent<DeviceOrientationInspectorAgent, protocol::DeviceOrientation::Frontend>, public protocol::DeviceOrientation::Backend { 18 class MODULES_EXPORT DeviceOrientationInspectorAgent final : public InspectorBas eAgent<protocol::DeviceOrientation::Metainfo> {
19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent); 19 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
20 public: 20 public:
21 static DeviceOrientationInspectorAgent* create(Page*); 21 static DeviceOrientationInspectorAgent* create(Page*);
22 22
23 ~DeviceOrientationInspectorAgent() override; 23 ~DeviceOrientationInspectorAgent() override;
24 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
25 25
26 // Protocol methods. 26 // Protocol methods.
27 void setDeviceOrientationOverride(ErrorString*, double, double, double) over ride; 27 void setDeviceOrientationOverride(ErrorString*, double, double, double) over ride;
28 void clearDeviceOrientationOverride(ErrorString*) override; 28 void clearDeviceOrientationOverride(ErrorString*) override;
29 29
30 // Inspector Controller API. 30 // Inspector Controller API.
31 void disable(ErrorString*) override; 31 void disable(ErrorString*) override;
32 void restore() override; 32 void restore() override;
33 void didCommitLoadForLocalFrame(LocalFrame*) override; 33 void didCommitLoadForLocalFrame(LocalFrame*) override;
34 34
35 private: 35 private:
36 explicit DeviceOrientationInspectorAgent(Page&); 36 explicit DeviceOrientationInspectorAgent(Page&);
37 DeviceOrientationController& controller(); 37 DeviceOrientationController& controller();
38 Member<Page> m_page; 38 Member<Page> m_page;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 43
44 #endif // !defined(DeviceOrientationInspectorAgent_h) 44 #endif // !defined(DeviceOrientationInspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698