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