| Index: Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
|
| diff --git a/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h b/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c0b658e3938b6ee5d4813f1d3309f376340a5b5c
|
| --- /dev/null
|
| +++ b/Source/modules/screen_orientation/ScreenOrientationInspectorAgent.h
|
| @@ -0,0 +1,44 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ScreenOrientationInspectorAgent_h
|
| +#define ScreenOrientationInspectorAgent_h
|
| +
|
| +#include "core/InspectorFrontend.h"
|
| +#include "core/inspector/InspectorBaseAgent.h"
|
| +#include "modules/ModulesExport.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ScreenOrientationController;
|
| +
|
| +typedef String ErrorString;
|
| +
|
| +class MODULES_EXPORT ScreenOrientationInspectorAgent final : public InspectorBaseAgent<ScreenOrientationInspectorAgent, InspectorFrontend::ScreenOrientation>, public InspectorBackendDispatcher::ScreenOrientationCommandHandler {
|
| + WTF_MAKE_NONCOPYABLE(ScreenOrientationInspectorAgent);
|
| +public:
|
| + static PassOwnPtrWillBeRawPtr<ScreenOrientationInspectorAgent> create(LocalFrame&);
|
| +
|
| + virtual ~ScreenOrientationInspectorAgent();
|
| +
|
| + // Protocol methods.
|
| + virtual void setScreenOrientationOverride(ErrorString*, int, const String&) override;
|
| + virtual void clearScreenOrientationOverride(ErrorString*) override;
|
| +
|
| + // InspectorBaseAgent overrides.
|
| + void disable(ErrorString*) override;
|
| + void restore() override;
|
| + void didCommitLoadForLocalFrame(LocalFrame*) override;
|
| +
|
| +private:
|
| + explicit ScreenOrientationInspectorAgent(LocalFrame&);
|
| + ScreenOrientationController& controller();
|
| + LocalFrame& m_frame;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +
|
| +#endif // !defined(ScreenOrientationInspectorAgent_h)
|
|
|