Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions
nsImageFrame::IconLoad Class Reference
Inheritance diagram for nsImageFrame::IconLoad:
Inheritance graph
[legend]
Collaboration diagram for nsImageFrame::IconLoad:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IconLoad (imgIDecoderObserver *aObserver)
void Shutdown ()
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Public Attributes

nsCOMPtr< imgIRequestmLoadingImage
nsCOMPtr< imgIRequestmBrokenImage
nsCOMPtr< imgIDecoderObservermLoadObserver
PRUint8 mIconsLoaded
PRPackedBool mPrefForceInlineAltText
PRPackedBool mPrefShowPlaceholders

Private Member Functions

void GetPrefs ()

Detailed Description

Definition at line 273 of file nsImageFrame.h.


Constructor & Destructor Documentation

Definition at line 2032 of file nsImageFrame.cpp.

  : mLoadObserver(aObserver),
    mIconsLoaded(0)
{
  nsCOMPtr<nsIPrefBranch2> prefBranch =
    do_QueryInterface(nsContentUtils::GetPrefBranch());

  // register observers
  for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kIconLoadPrefs); ++i)
    prefBranch->AddObserver(kIconLoadPrefs[i], this, PR_FALSE);

  GetPrefs();
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 2065 of file nsImageFrame.cpp.

{
  mPrefForceInlineAltText =
    nsContentUtils::GetBoolPref("browser.display.force_inline_alttext");

  mPrefShowPlaceholders =
    nsContentUtils::GetBoolPref("browser.display.show_image_placeholders",
                                PR_TRUE);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

Parameters:
aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.

Definition at line 279 of file nsImageFrame.h.

    {
      // in case the pref service releases us later
      if (mLoadingImage) {
        mLoadingImage->Cancel(NS_ERROR_FAILURE);
        mLoadingImage = nsnull;
      }
      if (mBrokenImage) {
        mBrokenImage->Cancel(NS_ERROR_FAILURE);
        mBrokenImage = nsnull;
      }
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 300 of file nsImageFrame.h.

Definition at line 302 of file nsImageFrame.h.

Definition at line 299 of file nsImageFrame.h.

Definition at line 301 of file nsImageFrame.h.

Definition at line 303 of file nsImageFrame.h.

Definition at line 304 of file nsImageFrame.h.


The documentation for this class was generated from the following files: