1 /************************************************************************
3 * Copyright (c) 2011 by Samsung Electronics Ltd.
7 * This document may not, in whole or in part, be copied, photocopied,
8 * reproduced, translated, or reduced to any electronic medium or machine
9 * readable form without prior written consent from Samsung Electronics.
11 ***********************************************************************/
16 * @brief npapi extension: replacement of XEvent, NPNVariable extensions
18 * @author Mariusz Grzegorczyk(mariusz.g@samsung.com)
25 /************************************************************************
27 ***********************************************************************/
30 ///////////////////////////////////////////////////////////////////////////////
31 // DEFINITION OF VALUES PASSED THROUGH NPP_HandleEvent
42 SNPPaintEvent, // Send when weak zoom is done in webkit
44 SNPReduceFPSEvent, // Plugin should reduce its frame rate
46 SNPPausePluginEvent, // Plugin should be paused
48 SNPDocumentLoadedEvent, // Notifies plugin that current document loading is finished
49 SNPPluginInactiveEvent, // Trigerred when plugin loses its focus. It can be used to f.e. hide keyboard
50 SNPLowMemoryEvent // Notification about low memory, plugin can reduce memory consumption on that event
70 typedef struct SNPPaint SNPPaint;
73 SNPEventType eventType;
76 // depends on needs from plugin teams
98 ///////////////////////////////////////////////////////////////////////////////
102 * queries for a specific SNPInterface.
103 * NPN_GetValue(NPP instance, interface_enum, SNPInterface*)
105 #define NPNCanvasInterface ((NPNVariable)1000)
106 #define NPNWindowInterface ((NPNVariable)1001)
107 #define NPNPaintInterface ((NPNVariable)1002)
110 * queries for plugin size and storage: canvas, clipper, window, elm-webview
112 #define NPNPluginStorage ((NPNVariable)1100)
113 #define NPNPluginSize ((NPNVariable)1101)
115 #endif /* slp_npapi_h */