#ifndef CHROMECAST_BROWSER_CAST_TOUCH_DEVICE_MANAGER_H_
#define CHROMECAST_BROWSER_CAST_TOUCH_DEVICE_MANAGER_H_
#include <inttypes.h>
#include "ui/display/display.h"
#include "ui/events/devices/input_device_event_observer.h"
#include "ui/gfx/geometry/rect.h"
namespace chromecast {
namespace shell {
class CastTouchDeviceManager : public ui::InputDeviceEventObserver {
public:
explicit CastTouchDeviceManager();
CastTouchDeviceManager(const CastTouchDeviceManager&) = delete;
CastTouchDeviceManager& operator=(const CastTouchDeviceManager&) = delete;
~CastTouchDeviceManager() override;
void OnInputDeviceConfigurationChanged(uint8_t input_device_types) override;
void OnDisplayConfigured(int64_t display_id,
display::Display::Rotation rotation,
const gfx::Rect& native_bounds_in_pixel);
private:
void UpdateTouchscreenConfiguration();
int64_t display_id_;
display::Display::Rotation display_rotation_;
gfx::Rect native_display_bounds_in_pixel_;
};
}
}
#endif