#include "content/browser/devtools/protocol/device_orientation_handler.h"
#include "base/functional/bind.h"
#include "content/browser/devtools/protocol/emulation.h"
#include "content/browser/devtools/protocol/emulation_handler.h"
#include "content/browser/devtools/protocol/protocol.h"
#include "content/browser/generic_sensor/web_contents_sensor_provider_proxy.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "services/device/public/cpp/generic_sensor/orientation_util.h"
#include "services/device/public/mojom/sensor_provider.mojom.h"
namespace content {
namespace protocol {
DeviceOrientationHandler::DeviceOrientationHandler()
: … { … }
DeviceOrientationHandler::~DeviceOrientationHandler() = default;
void DeviceOrientationHandler::Wire(UberDispatcher* dispatcher) { … }
void DeviceOrientationHandler::SetRenderer(int process_host_id,
RenderFrameHostImpl* frame_host) { … }
Response DeviceOrientationHandler::Disable() { … }
Response DeviceOrientationHandler::ClearDeviceOrientationOverride() { … }
void DeviceOrientationHandler::SetDeviceOrientationOverride(
double alpha,
double beta,
double gamma,
std::unique_ptr<SetDeviceOrientationOverrideCallback> callback) { … }
WebContentsImpl* DeviceOrientationHandler::GetWebContents() { … }
}
}