1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_ 6#define PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_ 7 8#include "ppapi/c/dev/ppb_cursor_control_dev.h" 9 10/// @file 11/// This file defines APIs for controlling the cursor. 12 13namespace pp { 14 15class ImageData; 16class InstanceHandle; 17class Point; 18 19/// APIs for controlling the cursor. 20class CursorControl_Dev { 21 public: 22 CursorControl_Dev() {} 23 24 bool SetCursor(const InstanceHandle& instance, 25 PP_CursorType_Dev type, 26 const ImageData& custom_image, 27 const Point& hot_spot); 28 bool LockCursor(const InstanceHandle& instance); 29 bool UnlockCursor(const InstanceHandle& instance); 30 bool HasCursorLock(const InstanceHandle& instance); 31 bool CanLockCursor(const InstanceHandle& instance); 32}; 33 34} // namespace pp 35 36#endif // PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_ 37