diff options
| author | Derek Sollenberger <djsollen@google.com> | 2011-01-05 07:48:25 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-05 07:48:25 -0800 |
| commit | 350d99c7fa570aa943f3f142a4b279b9c1cc97b9 (patch) | |
| tree | bfc2e1950fa9cef2bbc019eab231486a6bc96d90 /WebKit/android/plugins/android_npapi.h | |
| parent | 17355895d12e1d97f449ae6a2f2d82f28d50980f (diff) | |
| parent | 1f7eee5350a1e078daa31e06b09a911f3fc6cb37 (diff) | |
| download | external_webkit-350d99c7fa570aa943f3f142a4b279b9c1cc97b9.zip external_webkit-350d99c7fa570aa943f3f142a4b279b9c1cc97b9.tar.gz external_webkit-350d99c7fa570aa943f3f142a4b279b9c1cc97b9.tar.bz2 | |
Merge "Plugin API to report the onscreen visibility of the plugin."
Diffstat (limited to 'WebKit/android/plugins/android_npapi.h')
| -rw-r--r-- | WebKit/android/plugins/android_npapi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/WebKit/android/plugins/android_npapi.h b/WebKit/android/plugins/android_npapi.h index a99666e..2431985 100644 --- a/WebKit/android/plugins/android_npapi.h +++ b/WebKit/android/plugins/android_npapi.h @@ -122,6 +122,7 @@ typedef uint32_t ANPMatrixFlag; #define kAudioTrackInterfaceV1_ANPGetValue ((NPNVariable)1012) #define kOpenGLInterfaceV0_ANPGetValue ((NPNVariable)1013) +#define kWindowInterfaceV1_ANPGetValue ((NPNVariable)1014) /** queries for the drawing models supported on this device. @@ -682,6 +683,14 @@ struct ANPWindowInterfaceV0 : ANPInterface { void (*requestCenterFitZoom)(NPP instance); }; +struct ANPWindowInterfaceV1 : ANPWindowInterfaceV0 { + /** Returns a rectangle representing the visible area of the plugin on + screen. The coordinates are relative to the size of the plugin in the + document and therefore will never be negative or exceed the plugin's size. + */ + ANPRectI (*visibleRect)(NPP instance); +}; + /////////////////////////////////////////////////////////////////////////////// enum ANPSampleFormats { |
