diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 21:50:48 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 21:50:48 +0000 |
commit | fd6892786a0d63a0b16606f1e8b9582f0f2adc87 (patch) | |
tree | 5d6299bcc0b3f1bb01e6a38b509ba172ad6d38ee /third_party | |
parent | 5b3edb8ab53c7a03d145b77dc3007544d72c0a0b (diff) | |
download | chromium_src-fd6892786a0d63a0b16606f1e8b9582f0f2adc87.zip chromium_src-fd6892786a0d63a0b16606f1e8b9582f0f2adc87.tar.gz chromium_src-fd6892786a0d63a0b16606f1e8b9582f0f2adc87.tar.bz2 |
Add parameters to CreateWidget Pepper API so we can specify whether a scrollbar is vertical or not.
Review URL: http://codereview.chromium.org/1996009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46741 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/npapi/bindings/npapi_extensions.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/third_party/npapi/bindings/npapi_extensions.h b/third_party/npapi/bindings/npapi_extensions.h index bdc0dd0..603e58a 100644 --- a/third_party/npapi/bindings/npapi_extensions.h +++ b/third_party/npapi/bindings/npapi_extensions.h @@ -434,10 +434,14 @@ typedef enum { NPWidgetTypeScrollbar = 0, } NPWidgetType; -typedef struct _NPTickMarks { +typedef struct _NPScrollbarCreateParams { + bool vertical; +} NPScrollbarCreateParams; + +typedef struct _NPScrollbarTickMarks { uint32 count; uint32* tickmarks; -} NPTickMarks; +} NPScrollbarTickMarks; typedef enum { NPWidgetPropertyLocation = 0, // Set only. variable is NPRect*. @@ -445,7 +449,7 @@ typedef enum { NPWidgetPropertyScrollbarThickness = 2, // Get only. variable is int32*. NPWidgetPropertyScrollbarPosition = 3, // variable is int32*. NPWidgetPropertyScrollbarDocumentSize = 4, // Set only. variable is int32*. - // Set only. variable is NPTickMarks*. + // Set only. variable is NPScrollbarTickMarks*. NPWidgetPropertyScrollbarTickMarks = 5, // Set only. variable is bool* (true for forward, false for backward). NPWidgetPropertyScrollbarScrollByLine = 6, @@ -462,6 +466,7 @@ typedef enum { typedef NPError (*NPCreateWidgetPtr) ( NPP instance, NPWidgetType type, + void* params, // Widget specific. NPWidgetID* id); // Destroys a widget. |