#ifndef ScreenOrientationController_h
#define ScreenOrientationController_h
#include "core/dom/DocumentSupplementable.h"
#include "public/platform/WebScreenOrientation.h"
namespace WebCore {
class ScreenOrientationController FINAL : public DocumentSupplement {
public:
virtual ~ScreenOrientationController();
void didChangeScreenOrientation(blink::WebScreenOrientation);
blink::WebScreenOrientation orientation() const { return m_orientation; }
static ScreenOrientationController& from(Document&);
static const char* supplementName();
private:
explicit ScreenOrientationController(Document&);
void dispatchOrientationChangeEvent();
Document& m_document;
blink::WebScreenOrientation m_orientation;
};
}
#endif