mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
52 lines
933 B
C++
52 lines
933 B
C++
#include "mozilla/test/TestChild.h"
|
|
|
|
using mozilla::test::TestChild;
|
|
|
|
// C++ file contents
|
|
TestChild::TestChild()
|
|
{
|
|
}
|
|
|
|
TestChild::~TestChild()
|
|
{
|
|
}
|
|
|
|
#if 1
|
|
//-----------------------------------------------------------------------------
|
|
// "Hello world" example
|
|
nsresult TestChild::RecvHello()
|
|
{
|
|
puts("[TestChild] Hello, ");
|
|
SendWorld();
|
|
return NS_OK;
|
|
}
|
|
|
|
|
|
#elif 0
|
|
//-----------------------------------------------------------------------------
|
|
// Example solution to exercise
|
|
nsresult TestChild::RecvPing()
|
|
{
|
|
return SendPong(42);
|
|
}
|
|
|
|
nsresult TestChild::RecvPong(const int& status)
|
|
{
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
nsresult TestChild::RecvTellValue(
|
|
const String& key,
|
|
const String& val)
|
|
{
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
|
|
nsresult TestChild::RecvTellValues(
|
|
const StringArray& keys,
|
|
const StringArray& vals)
|
|
{
|
|
return NS_ERROR_NOT_IMPLEMENTED;
|
|
}
|
|
#endif
|