r=edburns
Author: Ron Capelli
These changes make webclient run with Mozilla 1.4.
Summary of changes:
src_moz/rdf_util.cpp
reason: API change to RDFServiceImpl::GetResource()
src_moz/RDFActionEvents.cpp
reason: API change to RDFServiceImpl::GetUnicodeResource()
src_moz/wsRDFObserver.cpp
reason: member name changes to inherited nsIRDFObserver
src_moz/CBrowserContainer.cpp
reasons:
- replaced obsolete/deleted nsFileSpec.h with nsCRT.h
(to access only required/referenced function)
- added new SetBlurSuppression and GetBlurSuppression methods
required by change to inherited nsIBaseWindow (implementation
copied from mozilla/xpfe/appshell/src/nsXULWindow.cpp).
src_moz/CBrowserContainer.h
reason: added mBlurSuppressionLevel member variable for
SetBlurSuppression and GetBlurSuppression methods.
The changes were relatively straightforward to identify from errors
attempting to build with Mozilla 1.4. Testing so far indicates no
new problems have been introduced...
git-svn-id: svn://10.0.0.236/trunk@144789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "rdf_util.h"
|
||||
|
||||
#include "ns_globals.h" // for prLogModuleInfo and gComponentManager
|
||||
#include "nsString.h"
|
||||
|
||||
#include "nsIServiceManager.h"
|
||||
|
||||
@@ -108,7 +109,7 @@ nsresult rdf_InitRDFUtils()
|
||||
// init the properties
|
||||
// find the nsIRDFResource for the bookmarks
|
||||
if (nsnull == kNC_BookmarksRoot) {
|
||||
rv = gRDF->GetResource(BOOKMARKS_URI,
|
||||
rv = gRDF->GetResource(nsDependentCString(BOOKMARKS_URI),
|
||||
getter_AddRefs(kNC_BookmarksRoot));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
@@ -116,7 +117,7 @@ nsresult rdf_InitRDFUtils()
|
||||
}
|
||||
|
||||
if (nsnull == kNC_Name) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#Name",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#Name"),
|
||||
getter_AddRefs(kNC_Name));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
@@ -124,21 +125,21 @@ nsresult rdf_InitRDFUtils()
|
||||
}
|
||||
|
||||
if (nsnull == kNC_URL) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#URL",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#URL"),
|
||||
getter_AddRefs(kNC_URL));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
if (nsnull == kNC_parent) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#parent",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#parent"),
|
||||
getter_AddRefs(kNC_parent));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
if (nsnull == kNC_Folder) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#Folder",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#Folder"),
|
||||
getter_AddRefs(kNC_Folder));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
@@ -146,21 +147,21 @@ nsresult rdf_InitRDFUtils()
|
||||
}
|
||||
|
||||
if (nsnull == kRDF_type) {
|
||||
rv = gRDF->GetResource("http://www.w3.org/1999/02/22-rdf-syntax-ns",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://www.w3.org/1999/02/22-rdf-syntax-ns"),
|
||||
getter_AddRefs(kRDF_type));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
if (nsnull == kNewFolderCommand) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#command?cmd=newfolder",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#command?cmd=newfolder"),
|
||||
getter_AddRefs(kNewFolderCommand));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
if (nsnull == kNewBookmarkCommand) {
|
||||
rv = gRDF->GetResource("http://home.netscape.com/NC-rdf#command?cmd=newbookmark",
|
||||
rv = gRDF->GetResource(NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#command?cmd=newbookmark"),
|
||||
getter_AddRefs(kNewBookmarkCommand));
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user