summaryrefslogtreecommitdiffstats
path: root/third_party/npapi/bindings
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 17:51:24 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-24 17:51:24 +0000
commitd5fa6fd614049dcacb22ab9034eaf2b892a17e85 (patch)
tree6da9ddda91bee81477b131b2636c6b8ce5f5200d /third_party/npapi/bindings
parent24096e8d585d543982cea6137ee9eeee63f5d13a (diff)
downloadchromium_src-d5fa6fd614049dcacb22ab9034eaf2b892a17e85.zip
chromium_src-d5fa6fd614049dcacb22ab9034eaf2b892a17e85.tar.gz
chromium_src-d5fa6fd614049dcacb22ab9034eaf2b892a17e85.tar.bz2
Add a SetCursor API to Pepper. I'll implement custom cursors once we switched over to the new API.
Review URL: http://codereview.chromium.org/2122018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/npapi/bindings')
-rw-r--r--third_party/npapi/bindings/npapi_extensions.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h
index 28edbe9..7ee2b76 100644
--- a/third_party/npapi/bindings/npapi_extensions.h
+++ b/third_party/npapi/bindings/npapi_extensions.h
@@ -579,6 +579,55 @@ typedef NPError (*NPChooseFilePtr)(
NPChooseFileCallback callback,
void* userData);
+typedef enum {
+ NPCursorTypePointer = 0,
+ NPCursorTypeCross = 1,
+ NPCursorTypeHand = 2,
+ NPCursorTypeIBeam = 3,
+ NPCursorTypeWait = 4,
+ NPCursorTypeHelp = 5,
+ NPCursorTypeEastResize = 6,
+ NPCursorTypeNorthResize = 7,
+ NPCursorTypeNorthEastResize = 8,
+ NPCursorTypeNorthWestResize = 9,
+ NPCursorTypeSouthResize = 10,
+ NPCursorTypeSouthEastResize = 11,
+ NPCursorTypeSouthWestResize = 12,
+ NPCursorTypeWestResize = 13,
+ NPCursorTypeNorthSouthResize = 14,
+ NPCursorTypeEastWestResize = 15,
+ NPCursorTypeNorthEastSouthWestResize = 16,
+ NPCursorTypeNorthWestSouthEastResize = 17,
+ NPCursorTypeColumnResize = 18,
+ NPCursorTypeRowResize = 19,
+ NPCursorTypeMiddlePanning = 20,
+ NPCursorTypeEastPanning = 21,
+ NPCursorTypeNorthPanning = 22,
+ NPCursorTypeNorthEastPanning = 23,
+ NPCursorTypeNorthWestPanning = 24,
+ NPCursorTypeSouthPanning = 25,
+ NPCursorTypeSouthEastPanning = 26,
+ NPCursorTypeSouthWestPanning = 27,
+ NPCursorTypeWestPanning = 28,
+ NPCursorTypeMove = 29,
+ NPCursorTypeVerticalText = 30,
+ NPCursorTypeCell = 31,
+ NPCursorTypeContextMenu = 32,
+ NPCursorTypeAlias = 33,
+ NPCursorTypeProgress = 34,
+ NPCursorTypeNoDrop = 35,
+ NPCursorTypeCopy = 36,
+ NPCursorTypeNone = 37,
+ NPCursorTypeNotAllowed = 38,
+ NPCursorTypeZoomIn = 39,
+ NPCursorTypeZoomOut = 40,
+} NPCursorType;
+
+// Temporary SetCursor API.
+typedef NPError (*NPSetCursorPtr)(
+ NPP instance,
+ NPCursorType type);
+
/* Pepper extensions */
struct NPNExtensions {
/* Device interface acquisition */
@@ -592,6 +641,8 @@ struct NPNExtensions {
NPChooseFilePtr chooseFile;
/* Widget */
NPGetWidgetExtensionsPtr getWidgetExtensions;
+ /* Cursor */
+ NPSetCursorPtr setCursor;
};
/* 3D -----------------------------------------------------------------------*/