Back to index

lightning-sunbird  0.9+nobinonly
Functions
EmbeddedFrame.cpp File Reference
#include <Controls.h>
#include <Events.h>
#include "EmbeddedFrame.h"
#include "EmbeddedFramePluginInstance.h"
#include "MRJPlugin.h"
#include "MRJSession.h"
#include "nsIPluginInstancePeer.h"
#include "nsIOutputStream.h"
#include "JSEvaluator.h"
#include "LocalPort.h"
#include "StringUtils.h"

Go to the source code of this file.

Functions

static void UnsetPort (GrafPtr port)
 if (mWindow!=NULL)
static void computeBounds (WindowRef window, Rect *bounds)

Function Documentation

static void computeBounds ( WindowRef  window,
Rect *  bounds 
) [static]

Definition at line 238 of file EmbeddedFrame.cpp.

{
       LocalPort port(window);
       port.Enter();
       
              Point position = { 0, 0 };
              ::LocalToGlobal(&position);
              
              *bounds = window->portRect;
       
       port.Exit();
       
       ::OffsetRect(bounds, position.h, position.v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

if ( mWindow!  = NULL)

Definition at line 155 of file EmbeddedFrame.cpp.

                            {
              Point zeroPt = { 0, 0 };
              ::JMSetFrameVisibility(mFrameRef, mWindow, zeroPt, NULL);
       }
static void UnsetPort ( GrafPtr  port) [static]

Definition at line 325 of file EmbeddedFrame.cpp.

{
       GrafPtr curPort;
       ::GetPort(&curPort);
       if (curPort == port) {
              ::GetWMgrPort(&port);
              ::SetPort(port);
       }
}

Here is the caller graph for this function: