blob: 715a6bf7be8f5ae52205f6416bd1b6124b395ab2 [file] [log] [blame]
// Copyright 2018 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 THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_SENSOR_INSPECTOR_AGENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_SENSOR_INSPECTOR_AGENT_H_
#include "third_party/blink/renderer/platform/heap/handle.h"
namespace blink {
class LocalDOMWindow;
class LocalFrame;
class SensorProviderProxy;
class SensorInspectorAgent : public GarbageCollected<SensorInspectorAgent> {
public:
explicit SensorInspectorAgent(LocalDOMWindow* window);
virtual void Trace(Visitor*) const;
void DidCommitLoadForLocalFrame(LocalFrame* frame);
void SetOrientationSensorOverride(double alpha, double beta, double gamma);
void Disable();
private:
Member<SensorProviderProxy> provider_;
DISALLOW_COPY_AND_ASSIGN(SensorInspectorAgent);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_SENSOR_SENSOR_INSPECTOR_AGENT_H_