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.
5 #ifndef PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_
6 #define PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_
8 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
11 /// This file defines APIs for controlling the cursor.
19 /// APIs for controlling the cursor.
20 class CursorControl_Dev
{
22 CursorControl_Dev() {}
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
);
36 #endif // PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_