gecko/dom/ipc/TabChild.h

42 lines
1009 B
C
Raw Normal View History

/* -*- 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
: public IFrameEmbeddingProtocolChild
{
public:
TabChild();
virtual ~TabChild();
bool Init(MessageLoop* aIOLoop, IPC::Channel* aChannel);
virtual nsresult Recvinit(const MagicWindowHandle& parentWidget);
virtual nsresult RecvloadURL(const nsCString& uri);
virtual nsresult Recvmove(const PRUint32& x,
const PRUint32& y,
const PRUint32& width,
const PRUint32& height);
private:
MagicWindowHandle mWidget;
nsCOMPtr<nsIWebNavigation> mWebNav;
DISALLOW_EVIL_CONSTRUCTORS(TabChild);
};
}
}
#endif // mozilla_tabs_TabChild_h