#ifndef CHROMECAST_GRAPHICS_CAST_WINDOW_TREE_HOST_AURA_H_
#define CHROMECAST_GRAPHICS_CAST_WINDOW_TREE_HOST_AURA_H_
#include <memory>
#include "chromecast/starboard/chromecast/events/ui_event_source.h"
#include "ui/aura/window_tree_host_platform.h"
namespace chromecast {
class CastWindowTreeHostAura : public aura::WindowTreeHostPlatform {
public:
CastWindowTreeHostAura(bool enable_input,
ui::PlatformWindowInitProperties properties);
CastWindowTreeHostAura(const CastWindowTreeHostAura&) = delete;
CastWindowTreeHostAura& operator=(const CastWindowTreeHostAura&) = delete;
~CastWindowTreeHostAura() override;
void DispatchEvent(ui::Event* event) override;
gfx::Rect GetTransformedRootWindowBoundsFromPixelSize(
const gfx::Size& size_in_pixels) const override;
private:
const bool enable_input_;
std::unique_ptr<UiEventSource> ui_event_source_;
};
}
#endif