Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsXFormsMessageElement.cpp File Reference
#include "nsXFormsAtoms.h"
#include "nsXFormsStubElement.h"
#include "nsXFormsDelegateStub.h"
#include "nsXFormsActionElement.h"
#include "nsIXFormsActionModuleElement.h"
#include "nsXFormsActionModuleBase.h"
#include "nsIDOMText.h"
#include "nsIDOM3Node.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIDOMDocumentView.h"
#include "nsIDOMAbstractView.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDOMWindowInternal.h"
#include "nsIDOMDOMImplementation.h"
#include "nsIDOMEvent.h"
#include "nsIDOMMouseEvent.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMEventListener.h"
#include "nsIDOMViewCSS.h"
#include "nsIDOMCSSValue.h"
#include "nsIDOMCSSPrimitiveValue.h"
#include "nsIDOMCSSStyleDeclaration.h"
#include "nsITimer.h"
#include "nsIDocument.h"
#include "nsIBoxObject.h"
#include "nsIServiceManager.h"
#include "prmem.h"
#include "plbase64.h"
#include "nsAutoPtr.h"
#include "nsIStringBundle.h"
#include "nsIDOMSerializer.h"
#include "nsIDelegateInternal.h"
#include "nsISupportsArray.h"
#include "nsISupportsPrimitives.h"
#include "nsNetUtil.h"
#include "nsIDOMDocumentEvent.h"
#include "nsIChannelEventSink.h"
#include "nsIXFormsEphemeralMessageUI.h"
#include "nsIContent.h"

Go to the source code of this file.

Classes

class  nsXFormsMessageElement
 Implementation of the XForms <message> element. More...

Defines

#define MESSAGE_WINDOW_PROPERTIES   "centerscreen,chrome,dependent,dialog"
#define MESSAGE_WINDOW_URL   "chrome://xforms/content/xforms-message.xul"
#define SHOW_EPHEMERAL_TIMEOUT   750
#define HIDE_EPHEMERAL_TIMEOUT   5000
#define EPHEMERAL_POSITION_RESET_TIMEOUT   100

Functions

void sEphemeralCallbackShow (nsITimer *aTimer, void *aListener)
void sEphemeralCallbackHide (nsITimer *aTimer, void *aListener)
void sEphemeralCallbackResetPosition (nsITimer *aTimer, void *aListener)
 NS_NewXFormsMessageElement (nsIXTFElement **aResult)
 NS_NewXFormsHintElement (nsIXTFElement **aResult)
 NS_NewXFormsHelpElement (nsIXTFElement **aResult)
 NS_NewXFormsAlertElement (nsIXTFElement **aResult)

Define Documentation

Definition at line 98 of file nsXFormsMessageElement.cpp.

Definition at line 97 of file nsXFormsMessageElement.cpp.

#define MESSAGE_WINDOW_PROPERTIES   "centerscreen,chrome,dependent,dialog"

Definition at line 88 of file nsXFormsMessageElement.cpp.

#define MESSAGE_WINDOW_URL   "chrome://xforms/content/xforms-message.xul"

Definition at line 91 of file nsXFormsMessageElement.cpp.

Definition at line 96 of file nsXFormsMessageElement.cpp.


Function Documentation

Definition at line 1339 of file nsXFormsMessageElement.cpp.

{
  *aResult = new nsXFormsMessageElement(nsXFormsMessageElement::eType_Alert);
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1328 of file nsXFormsMessageElement.cpp.

{
  *aResult = new nsXFormsMessageElement(nsXFormsMessageElement::eType_Help);
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1317 of file nsXFormsMessageElement.cpp.

{
  *aResult = new nsXFormsMessageElement(nsXFormsMessageElement::eType_Hint);
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1306 of file nsXFormsMessageElement.cpp.

{
  *aResult = new nsXFormsMessageElement(nsXFormsMessageElement::eType_Normal);
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void sEphemeralCallbackHide ( nsITimer aTimer,
void aListener 
)

Definition at line 830 of file nsXFormsMessageElement.cpp.

{
  nsXFormsMessageElement* self =
    NS_STATIC_CAST(nsXFormsMessageElement*, aListener);
  if (self)
    self->HideEphemeral();
}

Here is the caller graph for this function:

void sEphemeralCallbackResetPosition ( nsITimer aTimer,
void aListener 
)

Definition at line 839 of file nsXFormsMessageElement.cpp.

{
  nsXFormsMessageElement* self =
    NS_STATIC_CAST(nsXFormsMessageElement*, aListener);
  if (self)
    self->ResetEphemeralPosition();
}

Here is the caller graph for this function:

void sEphemeralCallbackShow ( nsITimer aTimer,
void aListener 
)

Definition at line 821 of file nsXFormsMessageElement.cpp.

{
  nsXFormsMessageElement* self =
    NS_STATIC_CAST(nsXFormsMessageElement*, aListener);
  if (self)
    self->ShowEphemeral();
}

Here is the caller graph for this function: