mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Adding a new interface for retrieving/setting state information on form
controls.
This commit is contained in:
parent
219f3348ce
commit
f46bc1840c
19
layout/base/nsIPresState.h
Normal file
19
layout/base/nsIPresState.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef _nsIPresState_h
|
||||
#define _nsIPresState_h
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
|
||||
// {98DABCE1-C9D7-11d3-BF87-00105A1B0627}
|
||||
#define NS_IPRESSTATE_IID \
|
||||
{ 0x98dabce1, 0xc9d7, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
||||
|
||||
class nsIPresState : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESSTATE_IID)
|
||||
|
||||
NS_IMETHOD GetStateProperty(nsString& aProperty) = 0;
|
||||
NS_IMETHOD SetStateProperty(const nsString& aProperty) = 0;
|
||||
};
|
||||
|
||||
#endif /* _nsIPresState_h */
|
@ -25,6 +25,7 @@ nsINameSpaceManager.h
|
||||
nsIPageSequenceFrame.h
|
||||
nsIPresContext.h
|
||||
nsIPresShell.h
|
||||
nsIPresState.h
|
||||
nsIReflowCommand.h
|
||||
nsISpaceManager.h
|
||||
nsFrameList.h
|
||||
|
@ -52,6 +52,7 @@ nsIFrameUtil.h \
|
||||
nsIPageSequenceFrame.h \
|
||||
nsIPresContext.h \
|
||||
nsIPresShell.h \
|
||||
nsIPresState.h \
|
||||
nsIReflowCommand.h \
|
||||
nsIFrameSelection.h \
|
||||
nsISpaceManager.h \
|
||||
|
@ -45,6 +45,7 @@ EXPORTS = \
|
||||
nsIPageSequenceFrame.h \
|
||||
nsIPresContext.h \
|
||||
nsIPresShell.h \
|
||||
nsIPresState.h \
|
||||
nsIReflowCommand.h \
|
||||
nsIFrameSelection.h \
|
||||
nsISpaceManager.h \
|
||||
|
19
layout/base/public/nsIPresState.h
Normal file
19
layout/base/public/nsIPresState.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef _nsIPresState_h
|
||||
#define _nsIPresState_h
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
|
||||
// {98DABCE1-C9D7-11d3-BF87-00105A1B0627}
|
||||
#define NS_IPRESSTATE_IID \
|
||||
{ 0x98dabce1, 0xc9d7, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
||||
|
||||
class nsIPresState : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPRESSTATE_IID)
|
||||
|
||||
NS_IMETHOD GetStateProperty(nsString& aProperty) = 0;
|
||||
NS_IMETHOD SetStateProperty(const nsString& aProperty) = 0;
|
||||
};
|
||||
|
||||
#endif /* _nsIPresState_h */
|
Loading…
Reference in New Issue
Block a user