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)
static void computeBounds (WindowRef window, Rect *bounds)

Function Documentation

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

Definition at line 237 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:

static void UnsetPort ( GrafPtr  port) [static]

Definition at line 324 of file EmbeddedFrame.cpp.

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