#include "content/browser/screen_orientation/screen_orientation_provider.h"
#include <utility>
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/screen_orientation_delegate.h"
#include "content/public/browser/web_contents.h"
namespace content {
ScreenOrientationLockResult;
ScreenOrientationDelegate* ScreenOrientationProvider::delegate_ = …;
ScreenOrientationProvider::ScreenOrientationProvider(WebContents* web_contents)
: … { … }
ScreenOrientationProvider::~ScreenOrientationProvider() = default;
void ScreenOrientationProvider::BindScreenOrientation(
RenderFrameHost* rfh,
mojo::PendingAssociatedReceiver<device::mojom::ScreenOrientation>
receiver) { … }
void ScreenOrientationProvider::LockOrientation(
device::mojom::ScreenOrientationLockType orientation,
LockOrientationCallback callback) { … }
void ScreenOrientationProvider::UnlockOrientation() { … }
void ScreenOrientationProvider::OnOrientationChange() { … }
void ScreenOrientationProvider::NotifyLockResult(
ScreenOrientationLockResult result) { … }
void ScreenOrientationProvider::SetDelegate(
ScreenOrientationDelegate* delegate) { … }
ScreenOrientationDelegate* ScreenOrientationProvider::GetDelegateForTesting() { … }
bool ScreenOrientationProvider::LockMatchesOrientation(
device::mojom::ScreenOrientationLockType lock,
display::mojom::ScreenOrientation orientation) { … }
void ScreenOrientationProvider::DidToggleFullscreenModeForTab(
bool entered_fullscreen,
bool will_cause_resize) { … }
void ScreenOrientationProvider::PrimaryPageChanged(Page& page) { … }
device::mojom::ScreenOrientationLockType
ScreenOrientationProvider::GetNaturalLockType() const { … }
bool ScreenOrientationProvider::LockMatchesCurrentOrientation(
device::mojom::ScreenOrientationLockType lock) { … }
}