1 // Copyright 2014 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.
5 #ifndef DeviceOrientationInspectorAgent_h
6 #define DeviceOrientationInspectorAgent_h
8 #include "core/inspector/InspectorBaseAgent.h"
9 #include "wtf/text/WTFString.h"
15 typedef String ErrorString;
17 class DeviceOrientationInspectorAgent FINAL : public InspectorBaseAgent<DeviceOrientationInspectorAgent>, public InspectorBackendDispatcher::DeviceOrientationCommandHandler {
18 WTF_MAKE_NONCOPYABLE(DeviceOrientationInspectorAgent);
20 static void provideTo(Page*);
22 virtual ~DeviceOrientationInspectorAgent();
25 virtual void setDeviceOrientationOverride(ErrorString*, double, double, double) OVERRIDE;
26 virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE;
29 explicit DeviceOrientationInspectorAgent(Page*);
33 } // namespace WebCore
36 #endif // !defined(DeviceOrientationInspectorAgent_h)