OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 ScreenOrientationInspectorAgent_h | 5 #ifndef ScreenOrientationInspectorAgent_h |
6 #define ScreenOrientationInspectorAgent_h | 6 #define ScreenOrientationInspectorAgent_h |
7 | 7 |
8 #include "core/InspectorFrontend.h" | 8 #include "core/InspectorFrontend.h" |
9 #include "core/inspector/InspectorBaseAgent.h" | 9 #include "core/inspector/InspectorBaseAgent.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class ScreenOrientationController; | 15 class ScreenOrientationController; |
16 | 16 |
17 typedef String ErrorString; | 17 typedef String ErrorString; |
18 | 18 |
19 class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBas
eAgent<ScreenOrientationInspectorAgent, InspectorFrontend::ScreenOrientation>, p
ublic InspectorBackendDispatcher::ScreenOrientationCommandHandler { | 19 class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBas
eAgent<ScreenOrientationInspectorAgent, InspectorFrontend::ScreenOrientation>, p
ublic InspectorBackendDispatcher::ScreenOrientationCommandHandler { |
20 WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent); | 20 WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent); |
21 public: | 21 public: |
22 static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalF
rame&); | 22 static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalF
rame&); |
23 | 23 |
24 virtual ~ScreenOrientationInspectorAgent(); | 24 ~ScreenOrientationInspectorAgent() override; |
25 | 25 |
26 // Protocol methods. | 26 // Protocol methods. |
27 virtual void setScreenOrientationOverride(ErrorString*, int, const String&)
override; | 27 void setScreenOrientationOverride(ErrorString*, int, const String&) override
; |
28 virtual void clearScreenOrientationOverride(ErrorString*) override; | 28 void clearScreenOrientationOverride(ErrorString*) override; |
29 | 29 |
30 // InspectorBaseAgent overrides. | 30 // InspectorBaseAgent overrides. |
31 void disable(ErrorString*) override; | 31 void disable(ErrorString*) override; |
32 void restore() override; | 32 void restore() override; |
33 | 33 |
34 private: | 34 private: |
35 explicit ScreenOrientationInspectorAgent(LocalFrame&); | 35 explicit ScreenOrientationInspectorAgent(LocalFrame&); |
36 LocalFrame& m_frame; | 36 LocalFrame& m_frame; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace blink | 39 } // namespace blink |
40 | 40 |
41 | 41 |
42 #endif // !defined(ScreenOrientationInspectorAgent_h) | 42 #endif // !defined(ScreenOrientationInspectorAgent_h) |
OLD | NEW |