#include "content/web_test/renderer/fake_screen_orientation_impl.h"
#include <memory>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "content/public/renderer/render_frame.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_view.h"
namespace content {
FakeScreenOrientationImpl::FakeScreenOrientationImpl() = default;
FakeScreenOrientationImpl::~FakeScreenOrientationImpl() = default;
void FakeScreenOrientationImpl::ResetData() { … }
bool FakeScreenOrientationImpl::UpdateDeviceOrientation(
blink::WebView* web_view,
display::mojom::ScreenOrientation orientation) { … }
bool FakeScreenOrientationImpl::UpdateScreenOrientation(
display::mojom::ScreenOrientation orientation) { … }
std::optional<display::mojom::ScreenOrientation>
FakeScreenOrientationImpl::CurrentOrientationType() const { … }
void FakeScreenOrientationImpl::SetDisabled(blink::WebView* web_view,
bool disabled) { … }
bool FakeScreenOrientationImpl::IsOrientationAllowedByCurrentLock(
display::mojom::ScreenOrientation orientation) { … }
void FakeScreenOrientationImpl::AddReceiver(
mojo::ScopedInterfaceEndpointHandle handle) { … }
void FakeScreenOrientationImpl::OverrideAssociatedInterfaceProviderForFrame(
blink::WebLocalFrame* frame) { … }
void FakeScreenOrientationImpl::LockOrientation(
device::mojom::ScreenOrientationLockType orientation,
LockOrientationCallback callback) { … }
void FakeScreenOrientationImpl::UnlockOrientation() { … }
void FakeScreenOrientationImpl::UpdateLockSync(
device::mojom::ScreenOrientationLockType lock,
LockOrientationCallback callback) { … }
void FakeScreenOrientationImpl::ResetLockSync() { … }
display::mojom::ScreenOrientation
FakeScreenOrientationImpl::SuitableOrientationForCurrentLock() { … }
}