#ifndef HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_ORIENTATION_DELEGATE_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_SCREEN_ORIENTATION_DELEGATE_H_
#include "content/public/browser/screen_orientation_delegate.h"
namespace content {
class WebContents;
}
namespace headless {
class HeadlessScreenOrientationDelegate
: public content::ScreenOrientationDelegate {
public:
HeadlessScreenOrientationDelegate();
HeadlessScreenOrientationDelegate(const HeadlessScreenOrientationDelegate&) =
delete;
HeadlessScreenOrientationDelegate& operator=(
const HeadlessScreenOrientationDelegate&) = delete;
~HeadlessScreenOrientationDelegate() override;
bool FullScreenRequired(content::WebContents* web_contents) override;
void Lock(content::WebContents* web_contents,
device::mojom::ScreenOrientationLockType lock_orientation) override;
bool ScreenOrientationProviderSupported(
content::WebContents* web_contents) override;
void Unlock(content::WebContents* web_contents) override;
};
}
#endif