| 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 RawPtr<ScreenOrientationInspectorAgent> create(LocalFrame&); |
| 23 | 23 |
| 24 ~ScreenOrientationInspectorAgent() override; | 24 ~ScreenOrientationInspectorAgent() override; |
| 25 | 25 |
| 26 DECLARE_VIRTUAL_TRACE(); | 26 DECLARE_VIRTUAL_TRACE(); |
| 27 | 27 |
| 28 // Protocol methods. | 28 // Protocol methods. |
| 29 void setScreenOrientationOverride(ErrorString*, int, const String&) override
; | 29 void setScreenOrientationOverride(ErrorString*, int, const String&) override
; |
| 30 void clearScreenOrientationOverride(ErrorString*) override; | 30 void clearScreenOrientationOverride(ErrorString*) override; |
| 31 | 31 |
| 32 // InspectorBaseAgent overrides. | 32 // InspectorBaseAgent overrides. |
| 33 void disable(ErrorString*) override; | 33 void disable(ErrorString*) override; |
| 34 void restore() override; | 34 void restore() override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 explicit ScreenOrientationInspectorAgent(LocalFrame&); | 37 explicit ScreenOrientationInspectorAgent(LocalFrame&); |
| 38 RawPtrWillBeMember<LocalFrame> m_frame; | 38 Member<LocalFrame> m_frame; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blink | 41 } // namespace blink |
| 42 | 42 |
| 43 | 43 |
| 44 #endif // !defined(ScreenOrientationInspectorAgent_h) | 44 #endif // !defined(ScreenOrientationInspectorAgent_h) |
| OLD | NEW |