mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
e368dc9c85
This patch was generated by a script. Here's the source of the script for future reference: function convert() { echo "Converting $1 to $2..." find . ! -wholename "*nsprpub*" \ ! -wholename "*security/nss*" \ ! -wholename "*/.hg*" \ ! -wholename "obj-ff-dbg*" \ ! -name nsXPCOMCID.h \ ! -name prtypes.h \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert PRInt8 int8_t convert PRUint8 uint8_t convert PRInt16 int16_t convert PRUint16 uint16_t convert PRInt32 int32_t convert PRUint32 uint32_t convert PRInt64 int64_t convert PRUint64 uint64_t convert PRIntn int convert PRUintn unsigned convert PRSize size_t convert PROffset32 int32_t convert PROffset64 int64_t convert PRPtrdiff ptrdiff_t convert PRFloat64 double
123 lines
3.1 KiB
Plaintext
123 lines
3.1 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "nsISupports.idl"
|
|
#include "nspluginroot.idl"
|
|
#include "nsIInputStream.idl"
|
|
|
|
interface nsIDocument;
|
|
|
|
%{C++
|
|
#include "npapi.h"
|
|
#include "nsNPAPIPluginInstance.h"
|
|
class nsPluginEvent;
|
|
%}
|
|
|
|
[ptr] native nsNPAPIPluginInstancePtr(nsNPAPIPluginInstance);
|
|
|
|
// Do not make this interface scriptable, because the virtual functions in C++
|
|
// blocks will make script call the wrong functions.
|
|
[uuid(23bd0a76-a5dc-4a1d-be76-13d7a0dfd9ff)]
|
|
interface nsIPluginInstanceOwner : nsISupports
|
|
{
|
|
/**
|
|
* Let the owner know what its instance is
|
|
*/
|
|
void setInstance(in nsNPAPIPluginInstancePtr aInstance);
|
|
|
|
/**
|
|
* Get the instance associated with this owner.
|
|
*/
|
|
nsNPAPIPluginInstancePtr getInstance();
|
|
|
|
/**
|
|
* Get a handle to the window structure of the owner.
|
|
* This pointer cannot be made persistent by the caller.
|
|
*/
|
|
void getWindow(in NPWindowStarRef aWindow);
|
|
|
|
/**
|
|
* Get the display mode for the plugin instance.
|
|
*/
|
|
readonly attribute int32_t mode;
|
|
|
|
/**
|
|
* Create a place for the plugin to live in the owner's
|
|
* environment. this may or may not create a window
|
|
* depending on the windowless state of the plugin instance.
|
|
*/
|
|
void createWidget();
|
|
|
|
%{C++
|
|
/**
|
|
* Called when there is a valid target so that the proper
|
|
* frame can be updated with new content. will not be called
|
|
* with nullptr aTarget.
|
|
*/
|
|
NS_IMETHOD
|
|
GetURL(const char *aURL, const char *aTarget,
|
|
nsIInputStream *aPostStream,
|
|
void *aHeadersData, uint32_t aHeadersDataLen) = 0;
|
|
%}
|
|
|
|
/**
|
|
* Show a status message in the host environment.
|
|
*/
|
|
void showStatus(in string aStatusMsg);
|
|
|
|
%{C++
|
|
NS_IMETHOD ShowStatus(const PRUnichar *aStatusMsg) = 0;
|
|
%}
|
|
|
|
/**
|
|
* Get the associated document.
|
|
*/
|
|
readonly attribute nsIDocument document;
|
|
|
|
/**
|
|
* Invalidate the rectangle
|
|
*/
|
|
void invalidateRect(in NPRectPtr aRect);
|
|
|
|
/**
|
|
* Invalidate the region
|
|
*/
|
|
void invalidateRegion(in NPRegion aRegion);
|
|
|
|
/**
|
|
* Have the plugin recomposited.
|
|
*/
|
|
void redrawPlugin();
|
|
|
|
/**
|
|
* Get NetscapeWindow, corresponds to NPNVnetscapeWindow
|
|
*/
|
|
void getNetscapeWindow(in voidPtr aValue);
|
|
|
|
/**
|
|
* Show native context menu
|
|
*/
|
|
%{C++
|
|
virtual NPError ShowNativeContextMenu(NPMenu* menu, void* event) = 0;
|
|
virtual NPBool ConvertPoint(double sourceX, double sourceY, NPCoordinateSpace sourceSpace,
|
|
double *destX, double *destY, NPCoordinateSpace destSpace) = 0;
|
|
virtual NPError InitAsyncSurface(NPSize *size, NPImageFormat format,
|
|
void *initData, NPAsyncSurface *surface) = 0;
|
|
virtual NPError FinalizeAsyncSurface(NPAsyncSurface *surface) = 0;
|
|
virtual void SetCurrentAsyncSurface(NPAsyncSurface *surface, NPRect *changed) = 0;
|
|
%}
|
|
|
|
void setEventModel(in int32_t eventModel);
|
|
|
|
%{C++
|
|
virtual void SendIdleEvent() = 0;
|
|
%}
|
|
|
|
/**
|
|
* Call NPP_SetWindow on the plugin.
|
|
*/
|
|
void callSetWindow();
|
|
};
|