Brought NPAPI plugin up to current specs for the common code, built and
installed in Chrome. Mostly works, but doesn't respond to button clicks.
Patch by: jat
Unreviewed
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6093 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/plugins/npapi/ScriptableInstance.h b/plugins/npapi/ScriptableInstance.h
index 4b4d5c0..035f823 100644
--- a/plugins/npapi/ScriptableInstance.h
+++ b/plugins/npapi/ScriptableInstance.h
@@ -87,6 +87,7 @@
// Identifiers
const NPIdentifier _connectId;
+ const NPIdentifier initID;
const NPIdentifier toStringID;
const NPIdentifier connectedID;
@@ -114,8 +115,10 @@
virtual void freeValue(HostChannel& channel, int idCount, const int* ids);
virtual void sendFreeValues(HostChannel& channel);
virtual void loadJsni(HostChannel& channel, const std::string& js);
+ virtual void fatalError(HostChannel& channel, const std::string& message);
void connect(const NPVariant* args, unsigned argCount, NPVariant* result);
+ void init(const NPVariant* args, unsigned argCount, NPVariant* result);
Value clientMethod_getProperty(HostChannel& channel, int numArgs, const Value* const args);
Value clientMethod_setProperty(HostChannel& channel, int numArgs, const Value* const args);
@@ -126,6 +129,9 @@
bool JavaObject_getProperty(int objectId, int dispId, NPVariant* result);
bool JavaObject_setProperty(int objectId, int dispId, const NPVariant* value);
bool JavaObject_getToStringTearOff(NPVariant* result);
+
+private:
+ std::string computeTabIdentity();
};
#endif