Bug 13058: Implement nsIStatefulFrame for file inputs, cache value until child textbox is created, and misc cleanups.

git-svn-id: svn://10.0.0.236/trunk@47361 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com
1999-09-14 19:28:45 +00:00
parent 960dd35b33
commit 975786079e
4 changed files with 172 additions and 30 deletions

View File

@@ -23,6 +23,7 @@
#include "nsIFormControlFrame.h"
#include "nsIDOMMouseListener.h"
#include "nsIAnonymousContentCreator.h"
#include "nsIStatefulFrame.h"
class nsButtonControlFrame;
class nsTextControlFrame;
@@ -33,7 +34,8 @@ class nsIHTMLContent;
class nsFileControlFrame : public nsAreaFrame,
public nsIFormControlFrame,
public nsIDOMMouseListener,
public nsIAnonymousContentCreator
public nsIAnonymousContentCreator,
public nsIStatefulFrame
{
public:
@@ -144,6 +146,11 @@ public:
virtual nsresult HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
//nsIStatefulFrame
NS_IMETHOD GetStateType(StateType* aStateType);
NS_IMETHOD SaveState(nsISupports** aState);
NS_IMETHOD RestoreState(nsISupports* aState);
protected:
nsIWidget* GetWindowTemp(nsIView *aView); // XXX temporary
@@ -152,6 +159,7 @@ protected:
nsTextControlFrame* mTextFrame;
nsFormFrame* mFormFrame;
nsIHTMLContent* mTextContent;
nsString* mCachedState;
private:
nsTextControlFrame* GetTextControlFrame(nsIFrame* aStart);