2009-06-30 13:39:22 -07:00
|
|
|
#include "TabParent.h"
|
|
|
|
|
|
|
|
#include "mozilla/ipc/GeckoThread.h"
|
|
|
|
|
|
|
|
#include "nsIURI.h"
|
|
|
|
|
|
|
|
using mozilla::ipc::BrowserProcessSubThread;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace tabs {
|
|
|
|
|
|
|
|
TabParent::TabParent(MagicWindowHandle parentWidget)
|
2009-07-20 11:14:41 -07:00
|
|
|
: mSubprocess(GeckoChildProcess_Tab)
|
2009-06-30 13:39:22 -07:00
|
|
|
{
|
2009-07-20 11:14:41 -07:00
|
|
|
mSubprocess.SyncLaunch();
|
2009-07-02 17:24:02 -07:00
|
|
|
Open(mSubprocess.GetChannel());
|
2009-06-30 13:39:22 -07:00
|
|
|
|
2009-07-14 00:33:50 -07:00
|
|
|
Sendinit(parentWidget);
|
2009-06-30 13:39:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
TabParent::~TabParent()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TabParent::LoadURL(nsIURI* aURI)
|
|
|
|
{
|
|
|
|
nsCString spec;
|
|
|
|
aURI->GetSpec(spec);
|
|
|
|
|
2009-07-14 00:33:50 -07:00
|
|
|
SendloadURL(spec.get());
|
2009-06-30 13:39:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TabParent::Move(PRUint32 x, PRUint32 y, PRUint32 width, PRUint32 height)
|
|
|
|
{
|
2009-07-14 00:33:50 -07:00
|
|
|
Sendmove(x, y, width, height);
|
2009-06-30 13:39:22 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace tabs
|
|
|
|
} // namespace mozilla
|