Skip to content

Commit

Permalink
Created base class for ViewChild versions
Browse files Browse the repository at this point in the history
Make it compile overall
  • Loading branch information
tmeshkova committed Dec 11, 2014
1 parent a275fea commit 6acecfe
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
5 changes: 3 additions & 2 deletions embedding/embedlite/embedprocess/EmbedLiteAppProcessChild.h
Expand Up @@ -7,8 +7,9 @@
#define MOZ_APP_EMBED_PROCESS_CHILD_H

#include "mozilla/embedlite/PEmbedLiteAppChild.h" // for PEmbedLiteAppChild
#include "EmbedLiteAppChildIface.h"
#include "mozilla/embedlite/EmbedLiteAppChildIface.h"

class EmbedLiteAppService;
namespace mozilla {
namespace embedlite {

Expand Down Expand Up @@ -45,7 +46,7 @@ class EmbedLiteAppProcessChild : public PEmbedLiteAppChild,
return mAppInfo;
}

::EmbedLiteAppService* AppService();
EmbedLiteAppService* AppService();

/*--------------------------------*/
virtual EmbedLiteViewChildIface* GetViewByID(uint32_t aId);
Expand Down
Expand Up @@ -20,6 +20,7 @@ namespace embedlite {

MOZ_IMPLICIT
EmbedLiteViewProcessChild::EmbedLiteViewProcessChild(const uint32_t& id, const uint32_t& parentId)
: EmbedLiteViewBaseChild(id, parentId)
{
LOGT();
MOZ_COUNT_CTOR(EmbedLiteViewProcessChild);
Expand Down Expand Up @@ -110,8 +111,7 @@ EmbedLiteViewProcessChild::InitGeckoWindow(const uint32_t& parentId)
nsCOMPtr<nsIDOMWindowUtils> utils = do_GetInterface(mDOMWindow);
utils->GetOuterWindowID(&mOuterId);

#warning "Return me back"
//AppChild()->AppService()->RegisterView(mId);
AppChild()->AppService()->RegisterView(mId);

nsCOMPtr<nsIObserverService> observerService =
do_GetService(NS_OBSERVERSERVICE_CONTRACTID);
Expand Down
4 changes: 3 additions & 1 deletion embedding/embedlite/embedprocess/EmbedLiteViewProcessChild.h
Expand Up @@ -15,13 +15,15 @@
#include "nsIEmbedBrowserChromeListener.h"
#include "TabChildHelper.h"
#include "EmbedLiteViewChildIface.h"
#include "EmbedLiteViewBaseChild.h"

namespace mozilla {
namespace embedlite {

class EmbedLiteViewProcessChild : public PEmbedLiteViewChild,
public nsIEmbedBrowserChromeListener,
public EmbedLiteViewChildIface
public EmbedLiteViewChildIface,
public EmbedLiteViewBaseChild
{
NS_INLINE_DECL_REFCOUNTING(EmbedLiteViewProcessChild)
public:
Expand Down
3 changes: 2 additions & 1 deletion embedding/embedlite/embedthread/EmbedLiteViewThreadChild.cpp
Expand Up @@ -76,7 +76,8 @@ static void ReadAZPCPrefs()
}

EmbedLiteViewThreadChild::EmbedLiteViewThreadChild(const uint32_t& aId, const uint32_t& parentId)
: mId(aId)
: EmbedLiteViewBaseChild(aId, parentId)
, mId(aId)
, mOuterId(0)
, mViewSize(0, 0)
, mViewResized(false)
Expand Down
4 changes: 3 additions & 1 deletion embedding/embedlite/embedthread/EmbedLiteViewThreadChild.h
Expand Up @@ -15,6 +15,7 @@
#include "nsIEmbedBrowserChromeListener.h"
#include "TabChildHelper.h"
#include "EmbedLiteViewChildIface.h"
#include "EmbedLiteViewBaseChild.h"

namespace mozilla {
namespace embedlite {
Expand All @@ -25,7 +26,8 @@ class EmbedLiteAppThreadChild;

class EmbedLiteViewThreadChild : public PEmbedLiteViewChild,
public nsIEmbedBrowserChromeListener,
public EmbedLiteViewChildIface
public EmbedLiteViewChildIface,
public EmbedLiteViewBaseChild
{
NS_INLINE_DECL_REFCOUNTING(EmbedLiteViewThreadChild)
public:
Expand Down
3 changes: 3 additions & 0 deletions embedding/embedlite/moz.build
Expand Up @@ -22,6 +22,8 @@ XPIDL_SOURCES += [
XPIDL_MODULE = 'embedLite'

EXPORTS.mozilla.embedlite += [
'embedhelpers/EmbedLiteAppChildIface.h',
'embedhelpers/EmbedLiteViewChildIface.h',
'EmbedInitGlue.h',
'EmbedLiteAPI.h',
'EmbedLiteApp.h',
Expand All @@ -37,6 +39,7 @@ EXPORTS.ipc = ['embedhelpers/InputDataIPC.h']
UNIFIED_SOURCES += [
'embedhelpers/EmbedLiteSubThread.cpp',
'embedhelpers/EmbedLiteUILoop.cpp',
'embedhelpers/EmbedLiteViewBaseChild.cpp',
'EmbedLiteApp.cpp',
'EmbedLiteMessagePump.cpp',
'EmbedLiteView.cpp',
Expand Down

0 comments on commit 6acecfe

Please sign in to comment.