2009-06-30 13:39:22 -07:00
|
|
|
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 8; -*- */
|
|
|
|
|
|
|
|
#ifndef mozilla_tabs_TabChild_h
|
|
|
|
#define mozilla_tabs_TabChild_h
|
|
|
|
|
|
|
|
#include "TabTypes.h"
|
|
|
|
#include "IFrameEmbeddingProtocol.h"
|
|
|
|
#include "IFrameEmbeddingProtocolChild.h"
|
|
|
|
#include "nsIWebNavigation.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace tabs {
|
|
|
|
|
|
|
|
class TabChild
|
2009-07-02 17:24:02 -07:00
|
|
|
: public IFrameEmbeddingProtocolChild
|
2009-06-30 13:39:22 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TabChild();
|
|
|
|
virtual ~TabChild();
|
|
|
|
|
|
|
|
bool Init(MessageLoop* aIOLoop, IPC::Channel* aChannel);
|
|
|
|
|
2009-07-14 00:33:50 -07:00
|
|
|
virtual nsresult Recvinit(const MagicWindowHandle& parentWidget);
|
2009-07-29 14:12:15 -07:00
|
|
|
virtual nsresult RecvloadURL(const nsCString& uri);
|
2009-07-14 00:33:50 -07:00
|
|
|
virtual nsresult Recvmove(const PRUint32& x,
|
|
|
|
const PRUint32& y,
|
|
|
|
const PRUint32& width,
|
|
|
|
const PRUint32& height);
|
2009-06-30 13:39:22 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
MagicWindowHandle mWidget;
|
|
|
|
nsCOMPtr<nsIWebNavigation> mWebNav;
|
|
|
|
|
|
|
|
DISALLOW_EVIL_CONSTRUCTORS(TabChild);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // mozilla_tabs_TabChild_h
|