Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
CBrowserWindow.h File Reference
#include <LWindow.h>
#include <LListener.h>
#include <LBroadcaster.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBrowserWindow

Functions

nsresult InitializeWindowCreator ()

Function Documentation

Definition at line 314 of file mozEmbed.cpp.

{

    printf("In InitializeWindowCreator\n");
    // create an nsWindowCreator and give it to the WindowWatcher service
    WindowCreator *creatorCallback = new WindowCreator();
    if (creatorCallback)
    {
        nsCOMPtr<nsIWindowCreator> windowCreator(NS_STATIC_CAST(nsIWindowCreator *, creatorCallback));
        if (windowCreator)
        {
            nsCOMPtr<nsIWindowWatcher> wwatch(do_GetService("@mozilla.org/embedcomp/window-watcher;1"));
            if (wwatch)
            {
                wwatch->SetWindowCreator(windowCreator);
                return NS_OK;
            }
        }
    }
    return NS_ERROR_FAILURE;
}

Here is the call graph for this function:

Here is the caller graph for this function: