NPAPI:CocoaEventModel: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 238: Line 238:
which a plug-in implements.  
which a plug-in implements.  


This corresponds to the Cocoa NSTextInput protocol. The documentation for NSTextInput applies to NPPluginTextInputFuncs with one exception. points and rects are given in the plug-in coordinate system, not the screen coordinate system.
This corresponds to the Cocoa [http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSTextInput_Protocol/Reference/Reference.html NSTextInput] protocol. The documentation for NSTextInput applies to NPPluginTextInputFuncs with one exception. points and rects are given in the plug-in coordinate system, not the screen coordinate system.


We are also adding
We are also adding
Line 250: Line 250:
  } NPBrowserTextInputFuncs;
  } NPBrowserTextInputFuncs;


which the browser implements. These two methods correspond to the same NSInputManager[2] methods.
which the browser implements. These two methods correspond to the same [http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSInputManager_Class/Reference/Reference.html#//apple_ref/occ/cl/NSInputManager NSInputManager] methods.


In order to not pollute NPPluginFuncs and NPBrowserFuncs with these methods we are adding a new NPPVariable
In order to not pollute NPPluginFuncs and NPBrowserFuncs with these methods we are adding a new NPPVariable
24

edits

Navigation menu