2009-07-01 00:39:22 +04: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 22:14:41 +04:00
|
|
|
: mSubprocess(GeckoChildProcess_Tab)
|
2009-07-01 00:39:22 +04:00
|
|
|
{
|
2009-07-20 22:14:41 +04:00
|
|
|
mSubprocess.SyncLaunch();
|
2009-07-03 04:24:02 +04:00
|
|
|
Open(mSubprocess.GetChannel());
|
2009-07-01 00:39:22 +04:00
|
|
|
|
2009-07-14 11:33:50 +04:00
|
|
|
Sendinit(parentWidget);
|
2009-07-01 00:39:22 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
TabParent::~TabParent()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TabParent::LoadURL(nsIURI* aURI)
|
|
|
|
{
|
|
|
|
nsCString spec;
|
|
|
|
aURI->GetSpec(spec);
|
|
|
|
|
2009-07-14 11:33:50 +04:00
|
|
|
SendloadURL(spec.get());
|
2009-07-01 00:39:22 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
TabParent::Move(PRUint32 x, PRUint32 y, PRUint32 width, PRUint32 height)
|
|
|
|
{
|
2009-07-14 11:33:50 +04:00
|
|
|
Sendmove(x, y, width, height);
|
2009-07-01 00:39:22 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace tabs
|
|
|
|
} // namespace mozilla
|