зеркало из https://github.com/mozilla/gecko-dev.git
More changes from John Keiser, not part of the build yet
This commit is contained in:
Родитель
5d7480d2c1
Коммит
b71fa0bc6f
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -35,23 +35,60 @@ class nsString;
|
||||||
class nsIPresContext;
|
class nsIPresContext;
|
||||||
class nsIUnicodeEncoder;
|
class nsIUnicodeEncoder;
|
||||||
class nsIDOMNode;
|
class nsIDOMNode;
|
||||||
|
class nsAString;
|
||||||
|
|
||||||
class nsFormSubmitter {
|
class nsFormSubmitter {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// JBK moved methods necessary for submit
|
// JBK moved methods necessary for submit
|
||||||
static nsresult OnSubmit(nsIForm* form, nsIPresContext* aPresContext, nsIContent* submitElement);
|
static nsresult OnSubmit(nsIForm* form,
|
||||||
|
nsIPresContext* aPresContext,
|
||||||
|
nsIContent* submitElement);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static nsresult CompareNodes(nsIDOMNode* a, nsIDOMNode* b, PRInt32* retval);
|
static nsresult CompareNodes(nsIDOMNode* a,
|
||||||
static nsresult ProcessAsURLEncoded(nsIForm* form, nsIPresContext* aPresContext, nsIFormProcessor* aFormProcessor, PRBool isPost, nsString& aData, nsIContent* submitElement, PRInt32 aSubmitPosition);
|
nsIDOMNode* b,
|
||||||
static nsresult ProcessAsMultipart(nsIForm* form, nsIPresContext* aPresContext, nsIFormProcessor* aFormProcessor,nsIFileSpec*& aMultipartDataFile, nsIContent* submitElement, PRInt32 aSubmitPosition);
|
PRInt32* retval);
|
||||||
static void GetSubmitCharset(nsIForm* form, nsString& oCharset, nsIPresContext* aPresContext);
|
static nsresult ProcessAsURLEncoded(nsIForm* form,
|
||||||
static nsresult GetEncoder(nsIForm* form, nsIPresContext* aPresContext, nsIUnicodeEncoder** encoder);
|
nsIPresContext* aPresContext,
|
||||||
static nsString* URLEncode(const nsString& aString, nsIUnicodeEncoder* encoder);
|
nsIFormProcessor* aFormProcessor,
|
||||||
static char* UnicodeToNewBytes(const PRUnichar* aSrc, PRUint32 aLen, nsIUnicodeEncoder* encoder);
|
PRBool isPost,
|
||||||
|
nsAString& aData,
|
||||||
|
nsIContent* submitElement,
|
||||||
|
PRInt32 aSubmitPosition,
|
||||||
|
PRUint8 aCtrlsModAtSubmit,
|
||||||
|
PRUint8 aTextDirAtSubmit);
|
||||||
|
static nsresult ProcessAsMultipart(nsIForm* form,
|
||||||
|
nsIPresContext* aPresContext,
|
||||||
|
nsIFormProcessor* aFormProcessor,
|
||||||
|
nsIFileSpec*& aMultipartDataFile,
|
||||||
|
nsIContent* submitElement,
|
||||||
|
PRInt32 aSubmitPosition,
|
||||||
|
PRUint8 aCtrlsModAtSubmit,
|
||||||
|
PRUint8 aTextDirAtSubmit);
|
||||||
|
static void GetSubmitCharset(nsIForm* form,
|
||||||
|
nsAString& oCharset,
|
||||||
|
nsIPresContext*
|
||||||
|
aPresContext,
|
||||||
|
PRUint8 aCtrlsModAtSubmit);
|
||||||
|
static nsresult GetEncoder(nsIForm* form,
|
||||||
|
nsIPresContext* aPresContext,
|
||||||
|
nsIUnicodeEncoder** encoder,
|
||||||
|
PRUint8 aCtrlsModAtSubmit,
|
||||||
|
const nsAString& mCharset);
|
||||||
|
static nsString* URLEncode(const nsAString& aString,
|
||||||
|
nsIUnicodeEncoder* encoder,
|
||||||
|
PRUint8 aCtrlsModAtSubmit,
|
||||||
|
PRUint8 aTextDirAtSubmit,
|
||||||
|
const nsAString& mCharset);
|
||||||
|
static char* UnicodeToNewBytes(const PRUnichar* aSrc,
|
||||||
|
PRUint32 aLen,
|
||||||
|
nsIUnicodeEncoder* encoder,
|
||||||
|
PRUint8 aCtrlsModAtSubmit,
|
||||||
|
PRUint8 aTextDirAtSubmit,
|
||||||
|
const nsAString& mCharset);
|
||||||
static nsresult GetPlatformEncoder(nsIUnicodeEncoder** encoder);
|
static nsresult GetPlatformEncoder(nsIUnicodeEncoder** encoder);
|
||||||
static PRUint32 GetFileNameWithinPath(nsString aPathName);
|
static PRUint32 GetFileNameWithinPath(nsString& aPathName);
|
||||||
static nsresult GetContentType(char* aPathName, char** aContentType);
|
static nsresult GetContentType(char* aPathName, char** aContentType);
|
||||||
|
|
||||||
// Detection of first form to notify observers
|
// Detection of first form to notify observers
|
||||||
|
|
Загрузка…
Ссылка в новой задаче