#include "ui/ozone/platform/wayland/host/wayland_zcr_touchpad_haptics.h"
#include <touchpad-haptics-unstable-v1-client-protocol.h>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
}
constexpr char WaylandZcrTouchpadHaptics::kInterfaceName[];
void WaylandZcrTouchpadHaptics::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
WaylandZcrTouchpadHaptics::WaylandZcrTouchpadHaptics(
zcr_touchpad_haptics_v1* zcr_touchpad_haptics,
WaylandConnection* connection)
: … { … }
WaylandZcrTouchpadHaptics::~WaylandZcrTouchpadHaptics() = default;
void WaylandZcrTouchpadHaptics::OnActivated(
void* data,
zcr_touchpad_haptics_v1* touchpad_haptics) { … }
void WaylandZcrTouchpadHaptics::OnDeactivated(
void* data,
zcr_touchpad_haptics_v1* touchpad_haptics) { … }
void WaylandZcrTouchpadHaptics::Play(int32_t effect, int32_t strength) { … }
}