#ifndef DeviceOrientationInspectorAgent_h
#define DeviceOrientationInspectorAgent_h
#include "core/inspector/InspectorBaseAgent.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
class DeviceOrientationController;
class Page;
typedef String ErrorString;
class DeviceOrientationInspectorAgent FINAL : public InspectorBaseAgent<DeviceOrientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCommandHandler {
WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
public:
static void provideTo(Page&);
virtual ~DeviceOrientationInspectorAgent();
virtual void setDeviceOrientationOverride(ErrorString*, double, double, double) OVERRIDE;
virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE;
virtual void clearFrontend() OVERRIDE;
virtual void restore() OVERRIDE;
virtual void didCommitLoadForMainFrame() OVERRIDE;
private:
explicit DeviceOrientationInspectorAgent(Page&);
DeviceOrientationController& controller();
Page& m_page;
};
}
#endif