gecko-dev/java/pluggable-jvm/wf_moz6/public/nsIJavaPluginInstanceProxy.idl

90 строки
2.9 KiB
Plaintext

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is The Waterfall Java Plugin Module
*
* The Initial Developer of the Original Code is Sun Microsystems Inc
* Portions created by Sun Microsystems Inc are Copyright (C) 2001
* All Rights Reserved.
*
* $Id: nsIJavaPluginInstanceProxy.idl,v 1.1 2001/05/10 18:12:41 edburns%acm.org Exp $
*
*
* Contributor(s):
*
* Nikolay N. Igotti <inn@sparc.spb.su>
*/
/**
* this is an utility interface used by Java plugin to perform all
* required by Java UI calls in UI thread.
*
* Author: Nikolay Igotti (inn@sparc.spb.su)
*/
#include "nsISupports.idl"
#include "nsoji2.idl"
%{C++
#define NS_JAVAPLUGININSTANCEPROXY_CID \
{ /* d0e94e41-65e1-49dc-9cbf-7ade042f4c16 */ \
0xd0e94e41, \
0x65e1, \
0x49dc, \
{0x9c, 0xbf, 0x7a, 0xde, 0x04, 0x2f, 0x4c, 0x16} \
}
%}
/* The main usage of this interface is to supply Java plugin with thread-safe
applet context. If something else will be required to be wrapped -
extend this one. Here listed all AppletContext methods with comments:
Applet getApplet(String name);
Note: everthing will happen inside JVM - SKIPPED
Enumeration getApplets();
Note: not requires interaction with browser's UI as all applets
anyway registred in plugin - SKIPPED
AudioClip getAudioClip(URL url);
Note: XXX: maybe requires interaction with browser's UI but I don't know
how to describe audio clip - SKIPPED
Image getImage(URL url);
Note: everything will happen inside JVM - SKIPPED
void showDocument(URL url) ;
Note: superseded by next method - WRAPPED by next method
void showDocument(URL url, String target);
Note: requires interaction with browser - WRAPPED.
void showStatus(String status);
Note: requires interaction with browser - WRAPPED.
*/
[uuid(6706fc34-05b7-4656-9c58-b92ffb220a8a)]
interface nsIJavaPluginInstanceProxy : nsISupports {
void ShowStatus(in string status);
void ShowDocument(in string url, in string target);
void GetJSThread(out jp_jint jstid);
};
[uuid(bc704bd3-f962-47ff-9e88-a48c941d78e9)]
interface nsIJavaPluginProxy : nsISupports {
void GetProxyForURL(in string url, out string proxy);
void JSCall(in jp_jint jstid, inout jp_CallInfo call);
};