checkpoint

git-svn-id: svn://10.0.0.236/trunk@213561 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2006-10-12 21:22:47 +00:00
parent 1dece3bb2a
commit bf79c9482d
21 changed files with 422 additions and 150 deletions

View File

@@ -23,6 +23,7 @@
#include "iPlugletEngine.h"
#include "nsCOMPtr.h"
#include "nsServiceManagerUtils.h"
jclass PlugletViewWindows::clazz = NULL;
jmethodID PlugletViewWindows::initMID = NULL;
@@ -33,8 +34,9 @@ PlugletViewWindows::PlugletViewWindows() {
isCreated = FALSE;
}
void PlugletViewWindows::Initialize() {
nsCOMPtr<iPlugletEngine> plugletEngine;
nsresult rv = iPlugletEngine::GetInstance(getter_AddRefs(plugletEngine));
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<iPlugletEngine> plugletEngine =
do_GetService(PLUGLETENGINE_ContractID, &rv);;
if (NS_FAILED(rv)) {
return;
}
@@ -79,8 +81,9 @@ PRBool PlugletViewWindows::SetWindow(nsPluginWindow* window) {
return PR_FALSE;
}
}
nsCOMPtr<iPlugletEngine> plugletEngine;
nsresult rv = iPlugletEngine::GetInstance(getter_AddRefs(plugletEngine));
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<iPlugletEngine> plugletEngine =
do_GetService(PLUGLETENGINE_ContractID, &rv);;
if (NS_FAILED(rv)) {
return PR_FALSE;
}