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