LCOV - code coverage report
Current view: directory - objdir/ipc/ipdl/_ipdlheaders/mozilla/dom - PBrowserChild.h (source / functions) Found Hit Coverage
Test: app.info Lines: 5 0 0.0 %
Date: 2012-06-02 Functions: 27 0 0.0 %

       1                 : //
       2                 : // Automatically generated by ipdlc.
       3                 : // Edit at your own risk
       4                 : //
       5                 : 
       6                 : #ifndef PBrowserChild_h
       7                 : #define PBrowserChild_h
       8                 : 
       9                 : #include "mozilla/dom/PBrowser.h"
      10                 : namespace mozilla {
      11                 : namespace dom {
      12                 : class PContentChild;
      13                 : } // namespace dom
      14                 : } // namespace mozilla
      15                 : 
      16                 : namespace mozilla {
      17                 : namespace dom {
      18                 : class PContentDialogChild;
      19                 : } // namespace dom
      20                 : } // namespace mozilla
      21                 : 
      22                 : namespace mozilla {
      23                 : namespace ipc {
      24                 : class PDocumentRendererChild;
      25                 : } // namespace ipc
      26                 : } // namespace mozilla
      27                 : 
      28                 : namespace mozilla {
      29                 : namespace dom {
      30                 : class PContentPermissionRequestChild;
      31                 : } // namespace dom
      32                 : } // namespace mozilla
      33                 : 
      34                 : namespace mozilla {
      35                 : namespace layout {
      36                 : class PRenderFrameChild;
      37                 : } // namespace layout
      38                 : } // namespace mozilla
      39                 : 
      40                 : namespace mozilla {
      41                 : namespace docshell {
      42                 : class POfflineCacheUpdateChild;
      43                 : } // namespace docshell
      44                 : } // namespace mozilla
      45                 : 
      46                 : #ifdef DEBUG
      47                 : #include "prenv.h"
      48                 : #endif // DEBUG
      49                 : #include "base/id_map.h"
      50                 : #include "mozilla/ipc/RPCChannel.h"
      51                 : 
      52                 : 
      53                 : namespace mozilla {
      54                 : namespace dom {
      55                 : class PContentDialogChild;
      56                 : } // namespace dom
      57                 : } // namespace mozilla
      58                 : 
      59                 : 
      60                 : namespace mozilla {
      61                 : namespace docshell {
      62                 : class POfflineCacheUpdateChild;
      63                 : } // namespace docshell
      64                 : } // namespace mozilla
      65                 : 
      66                 : 
      67                 : namespace mozilla {
      68                 : namespace net {
      69                 : class PNeckoChild;
      70                 : } // namespace net
      71                 : } // namespace mozilla
      72                 : 
      73                 : 
      74                 : namespace mozilla {
      75                 : namespace dom {
      76                 : class PContentChild;
      77                 : } // namespace dom
      78                 : } // namespace mozilla
      79                 : 
      80                 : 
      81                 : namespace mozilla {
      82                 : namespace dom {
      83                 : class PContentPermissionRequestChild;
      84                 : } // namespace dom
      85                 : } // namespace mozilla
      86                 : 
      87                 : 
      88                 : namespace mozilla {
      89                 : namespace ipc {
      90                 : class PDocumentRendererChild;
      91                 : } // namespace ipc
      92                 : } // namespace mozilla
      93                 : 
      94                 : 
      95                 : namespace mozilla {
      96                 : namespace layout {
      97                 : class PRenderFrameChild;
      98                 : } // namespace layout
      99                 : } // namespace mozilla
     100                 : 
     101                 : 
     102                 : namespace mozilla {
     103                 : namespace hal_sandbox {
     104                 : class PHalChild;
     105                 : } // namespace hal_sandbox
     106                 : } // namespace mozilla
     107                 : 
     108                 : namespace mozilla {
     109                 : namespace dom {
     110                 : 
     111                 : 
     112                 : class /*NS_ABSTRACT_CLASS*/ PBrowserChild :
     113                 :     protected mozilla::ipc::RPCChannel::RPCListener,
     114                 :     protected mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>
     115                 : {
     116                 :     friend class mozilla::dom::PContentDialogChild;
     117                 : 
     118                 :     friend class mozilla::docshell::POfflineCacheUpdateChild;
     119                 : 
     120                 :     friend class mozilla::net::PNeckoChild;
     121                 : 
     122                 :     friend class mozilla::dom::PContentChild;
     123                 : 
     124                 :     friend class mozilla::dom::PContentPermissionRequestChild;
     125                 : 
     126                 :     friend class mozilla::ipc::PDocumentRendererChild;
     127                 : 
     128                 :     friend class mozilla::layout::PRenderFrameChild;
     129                 : 
     130                 :     friend class mozilla::hal_sandbox::PHalChild;
     131                 : 
     132                 : protected:
     133                 :     typedef mozilla::ipc::ActorHandle ActorHandle;
     134                 :     typedef mozilla::ipc::Shmem Shmem;
     135                 :     typedef IPC::URI URI;
     136                 :     typedef mozilla::WindowsHandle WindowsHandle;
     137                 :     typedef mozilla::dom::PContentChild PContentChild;
     138                 :     typedef mozilla::dom::PContentDialogChild PContentDialogChild;
     139                 :     typedef mozilla::ipc::PDocumentRendererChild PDocumentRendererChild;
     140                 :     typedef mozilla::dom::PContentPermissionRequestChild PContentPermissionRequestChild;
     141                 :     typedef mozilla::layout::PRenderFrameChild PRenderFrameChild;
     142                 :     typedef mozilla::docshell::POfflineCacheUpdateChild POfflineCacheUpdateChild;
     143                 :     typedef base::ProcessId ProcessId;
     144                 :     typedef mozilla::ipc::ProtocolId ProtocolId;
     145                 :     typedef mozilla::ipc::Transport Transport;
     146                 :     typedef mozilla::ipc::TransportDescriptor TransportDescriptor;
     147                 : 
     148                 :     typedef PBrowser::State State;
     149                 : 
     150                 :     virtual bool
     151                 :     RecvAsyncMessage(
     152                 :             const nsString& aMessage,
     153                 :             const nsString& aJSON) = 0;
     154                 :     virtual bool
     155                 :     RecvShow(const nsIntSize& size) = 0;
     156                 :     virtual bool
     157                 :     RecvLoadURL(const nsCString& uri) = 0;
     158                 :     virtual bool
     159                 :     RecvUpdateDimensions(
     160                 :             const nsRect& rect,
     161                 :             const nsIntSize& size) = 0;
     162                 :     virtual bool
     163                 :     RecvActivate() = 0;
     164                 :     virtual bool
     165                 :     RecvDeactivate() = 0;
     166                 :     virtual bool
     167                 :     RecvMouseEvent(
     168                 :             const nsString& aType,
     169                 :             const float& aX,
     170                 :             const float& aY,
     171                 :             const PRInt32& aButton,
     172                 :             const PRInt32& aClickCount,
     173                 :             const PRInt32& aModifiers,
     174                 :             const bool& aIgnoreRootScrollFrame) = 0;
     175                 :     virtual bool
     176                 :     RecvRealMouseEvent(const nsMouseEvent& event) = 0;
     177                 :     virtual bool
     178                 :     RecvRealKeyEvent(const nsKeyEvent& event) = 0;
     179                 :     virtual bool
     180                 :     RecvMouseScrollEvent(const nsMouseScrollEvent& event) = 0;
     181                 :     virtual bool
     182                 :     RecvKeyEvent(
     183                 :             const nsString& aType,
     184                 :             const PRInt32& aKeyCode,
     185                 :             const PRInt32& aCharCode,
     186                 :             const PRInt32& aModifiers,
     187                 :             const bool& aPreventDefault) = 0;
     188                 :     virtual bool
     189                 :     RecvCompositionEvent(const nsCompositionEvent& event) = 0;
     190                 :     virtual bool
     191                 :     RecvTextEvent(const nsTextEvent& event) = 0;
     192                 :     virtual bool
     193                 :     RecvSelectionEvent(const nsSelectionEvent& event) = 0;
     194                 :     virtual bool
     195                 :     RecvActivateFrameEvent(
     196                 :             const nsString& aType,
     197                 :             const bool& capture) = 0;
     198                 :     virtual bool
     199                 :     RecvLoadRemoteScript(const nsString& aURL) = 0;
     200                 :     virtual bool
     201                 :     RecvPDocumentRendererConstructor(
     202                 :             PDocumentRendererChild* actor,
     203                 :             const nsRect& documentRect,
     204                 :             const gfxMatrix& transform,
     205                 :             const nsString& bgcolor,
     206                 :             const PRUint32& renderFlags,
     207                 :             const bool& flushLayout,
     208                 :             const nsIntSize& renderSize);
     209                 :     virtual bool
     210                 :     RecvDestroy() = 0;
     211                 :     virtual PContentPermissionRequestChild*
     212                 :     AllocPContentPermissionRequest(
     213                 :             const nsCString& aType,
     214                 :             const URI& uri) = 0;
     215                 :     virtual bool
     216                 :     DeallocPContentPermissionRequest(PContentPermissionRequestChild* actor) = 0;
     217                 :     virtual PContentDialogChild*
     218                 :     AllocPContentDialog(
     219                 :             const PRUint32& aType,
     220                 :             const nsCString& aName,
     221                 :             const nsCString& aFeatures,
     222                 :             const InfallibleTArray<PRInt32>& aIntParams,
     223                 :             const InfallibleTArray<nsString>& aStringParams) = 0;
     224                 :     virtual bool
     225                 :     DeallocPContentDialog(PContentDialogChild* actor) = 0;
     226                 :     virtual PRenderFrameChild*
     227                 :     AllocPRenderFrame() = 0;
     228                 :     virtual bool
     229                 :     DeallocPRenderFrame(PRenderFrameChild* actor) = 0;
     230                 :     virtual POfflineCacheUpdateChild*
     231                 :     AllocPOfflineCacheUpdate(
     232                 :             const URI& manifestURI,
     233                 :             const URI& documentURI,
     234                 :             const nsCString& clientID,
     235                 :             const bool& stickDocument) = 0;
     236                 :     virtual bool
     237                 :     DeallocPOfflineCacheUpdate(POfflineCacheUpdateChild* actor) = 0;
     238                 :     virtual PDocumentRendererChild*
     239                 :     AllocPDocumentRenderer(
     240                 :             const nsRect& documentRect,
     241                 :             const gfxMatrix& transform,
     242                 :             const nsString& bgcolor,
     243                 :             const PRUint32& renderFlags,
     244                 :             const bool& flushLayout,
     245                 :             const nsIntSize& renderSize) = 0;
     246                 :     virtual bool
     247                 :     DeallocPDocumentRenderer(PDocumentRendererChild* actor) = 0;
     248                 : 
     249                 :     virtual void
     250                 :     ActorDestroy(ActorDestroyReason why);
     251                 : 
     252                 : public:
     253                 :     typedef IPC::Message Message;
     254                 :     typedef mozilla::ipc::RPCChannel Channel;
     255                 :     typedef mozilla::ipc::RPCChannel::RPCListener ChannelListener;
     256                 :     typedef base::ProcessHandle ProcessHandle;
     257                 :     typedef mozilla::ipc::AsyncChannel AsyncChannel;
     258                 :     typedef mozilla::ipc::SharedMemory SharedMemory;
     259                 :     typedef mozilla::ipc::Trigger Trigger;
     260                 : 
     261                 : public:
     262                 :     PBrowserChild();
     263                 : 
     264                 :     virtual ~PBrowserChild();
     265                 : 
     266                 :     PContentChild*
     267                 :     Manager();
     268                 : 
     269                 :     void
     270                 :     ManagedPContentDialogChild(InfallibleTArray<PContentDialogChild*>& aArr) const;
     271                 :     const InfallibleTArray<PContentDialogChild*>&
     272                 :     ManagedPContentDialogChild() const;
     273                 : 
     274                 :     void
     275                 :     ManagedPDocumentRendererChild(InfallibleTArray<PDocumentRendererChild*>& aArr) const;
     276                 :     const InfallibleTArray<PDocumentRendererChild*>&
     277                 :     ManagedPDocumentRendererChild() const;
     278                 : 
     279                 :     void
     280                 :     ManagedPContentPermissionRequestChild(InfallibleTArray<PContentPermissionRequestChild*>& aArr) const;
     281                 :     const InfallibleTArray<PContentPermissionRequestChild*>&
     282                 :     ManagedPContentPermissionRequestChild() const;
     283                 : 
     284                 :     void
     285                 :     ManagedPRenderFrameChild(InfallibleTArray<PRenderFrameChild*>& aArr) const;
     286                 :     const InfallibleTArray<PRenderFrameChild*>&
     287                 :     ManagedPRenderFrameChild() const;
     288                 : 
     289                 :     void
     290                 :     ManagedPOfflineCacheUpdateChild(InfallibleTArray<POfflineCacheUpdateChild*>& aArr) const;
     291                 :     const InfallibleTArray<POfflineCacheUpdateChild*>&
     292                 :     ManagedPOfflineCacheUpdateChild() const;
     293                 : 
     294                 :     PBrowser::State
     295                 :     state();
     296                 : 
     297                 :     bool
     298                 :     SendAsyncMessage(
     299                 :             const nsString& aMessage,
     300                 :             const nsString& aJSON);
     301                 : 
     302                 :     bool
     303                 :     SendMoveFocus(const bool& forward);
     304                 : 
     305                 :     bool
     306                 :     SendEvent(const RemoteDOMEvent& aEvent);
     307                 : 
     308                 :     bool
     309                 :     CallCreateWindow(PBrowserChild** window);
     310                 : 
     311                 :     bool
     312                 :     SendSyncMessage(
     313                 :             const nsString& aMessage,
     314                 :             const nsString& aJSON,
     315                 :             InfallibleTArray<nsString>* retval);
     316                 : 
     317                 :     bool
     318                 :     SendNotifyIMEFocus(
     319                 :             const bool& focus,
     320                 :             nsIMEUpdatePreference* preference,
     321                 :             PRUint32* seqno);
     322                 : 
     323                 :     bool
     324                 :     SendNotifyIMETextChange(
     325                 :             const PRUint32& offset,
     326                 :             const PRUint32& end,
     327                 :             const PRUint32& newEnd);
     328                 : 
     329                 :     bool
     330                 :     SendNotifyIMESelection(
     331                 :             const PRUint32& seqno,
     332                 :             const PRUint32& anchor,
     333                 :             const PRUint32& focus);
     334                 : 
     335                 :     bool
     336                 :     SendNotifyIMETextHint(const nsString& text);
     337                 : 
     338                 :     bool
     339                 :     SendEndIMEComposition(
     340                 :             const bool& cancel,
     341                 :             nsString* composition);
     342                 : 
     343                 :     bool
     344                 :     SendGetInputContext(
     345                 :             PRInt32* IMEEnabled,
     346                 :             PRInt32* IMEOpen);
     347                 : 
     348                 :     bool
     349                 :     SendSetInputContext(
     350                 :             const PRInt32& IMEEnabled,
     351                 :             const PRInt32& IMEOpen,
     352                 :             const nsString& type,
     353                 :             const nsString& actionHint,
     354                 :             const PRInt32& cause,
     355                 :             const PRInt32& focusChange);
     356                 : 
     357                 :     bool
     358                 :     SendGetDPI(float* value);
     359                 : 
     360                 :     bool
     361                 :     SendGetWidgetNativeData(WindowsHandle* value);
     362                 : 
     363                 :     bool
     364                 :     SendSetCursor(const PRUint32& value);
     365                 : 
     366                 :     bool
     367                 :     SendSetBackgroundColor(const nscolor& color);
     368                 : 
     369                 :     PContentPermissionRequestChild*
     370                 :     SendPContentPermissionRequestConstructor(
     371                 :             const nsCString& aType,
     372                 :             const URI& uri);
     373                 : 
     374                 :     PContentPermissionRequestChild*
     375                 :     SendPContentPermissionRequestConstructor(
     376                 :             PContentPermissionRequestChild* actor,
     377                 :             const nsCString& aType,
     378                 :             const URI& uri);
     379                 : 
     380                 :     PContentDialogChild*
     381                 :     SendPContentDialogConstructor(
     382                 :             const PRUint32& aType,
     383                 :             const nsCString& aName,
     384                 :             const nsCString& aFeatures,
     385                 :             const InfallibleTArray<PRInt32>& aIntParams,
     386                 :             const InfallibleTArray<nsString>& aStringParams);
     387                 : 
     388                 :     PContentDialogChild*
     389                 :     SendPContentDialogConstructor(
     390                 :             PContentDialogChild* actor,
     391                 :             const PRUint32& aType,
     392                 :             const nsCString& aName,
     393                 :             const nsCString& aFeatures,
     394                 :             const InfallibleTArray<PRInt32>& aIntParams,
     395                 :             const InfallibleTArray<nsString>& aStringParams);
     396                 : 
     397                 :     PRenderFrameChild*
     398                 :     SendPRenderFrameConstructor();
     399                 : 
     400                 :     PRenderFrameChild*
     401                 :     SendPRenderFrameConstructor(PRenderFrameChild* actor);
     402                 : 
     403                 :     POfflineCacheUpdateChild*
     404                 :     SendPOfflineCacheUpdateConstructor(
     405                 :             const URI& manifestURI,
     406                 :             const URI& documentURI,
     407                 :             const nsCString& clientID,
     408                 :             const bool& stickDocument);
     409                 : 
     410                 :     POfflineCacheUpdateChild*
     411                 :     SendPOfflineCacheUpdateConstructor(
     412                 :             POfflineCacheUpdateChild* actor,
     413                 :             const URI& manifestURI,
     414                 :             const URI& documentURI,
     415                 :             const nsCString& clientID,
     416                 :             const bool& stickDocument);
     417                 : 
     418                 :     static bool
     419                 :     Send__delete__(PBrowserChild* actor);
     420                 : 
     421                 :     virtual int32
     422                 :     Register(ChannelListener* aRouted);
     423                 :     virtual int32
     424                 :     RegisterID(
     425                 :             ChannelListener* aRouted,
     426                 :             int32 aId);
     427                 :     virtual ChannelListener*
     428                 :     Lookup(int32 aId);
     429                 :     virtual void
     430                 :     Unregister(int32 aId);
     431                 :     virtual void
     432                 :     RemoveManagee(
     433                 :             int32 aProtocolId,
     434                 :             ChannelListener* aListener);
     435                 :     virtual Shmem::SharedMemory*
     436                 :     CreateSharedMemory(
     437                 :             size_t aSize,
     438                 :             Shmem::SharedMemory::SharedMemoryType type,
     439                 :             bool unsafe,
     440                 :             Shmem::id_t* aId);
     441                 :     virtual bool
     442                 :     AdoptSharedMemory(
     443                 :             Shmem::SharedMemory* segment,
     444                 :             Shmem::id_t* aId);
     445                 :     virtual Shmem::SharedMemory*
     446                 :     LookupSharedMemory(Shmem::id_t aId);
     447                 :     virtual bool
     448                 :     IsTrackingSharedMemory(Shmem::SharedMemory* segment);
     449                 :     virtual bool
     450                 :     DestroySharedMemory(Shmem& aShmem);
     451                 :     virtual ProcessHandle
     452                 :     OtherProcess() const;
     453                 :     virtual AsyncChannel*
     454                 :     GetIPCChannel();
     455                 : 
     456                 :     virtual Result
     457                 :     OnMessageReceived(const Message& __msg);
     458                 : 
     459                 :     virtual Result
     460                 :     OnMessageReceived(
     461                 :             const Message& __msg,
     462                 :             Message*& __reply);
     463                 : 
     464                 :     virtual Result
     465                 :     OnCallReceived(
     466                 :             const Message& __msg,
     467                 :             Message*& __reply);
     468                 : 
     469                 :     void
     470                 :     OnProcessingError(Result code);
     471                 : 
     472                 :     bool
     473                 :     OnReplyTimeout();
     474                 : 
     475                 :     void
     476                 :     OnChannelClose();
     477                 : 
     478                 :     void
     479                 :     OnChannelError();
     480                 : 
     481                 :     void
     482                 :     OnChannelConnected(int32 pid);
     483                 : 
     484                 :     // Methods for managing shmem
     485                 :     bool
     486                 :     AllocShmem(
     487                 :             size_t aSize,
     488                 :             Shmem::SharedMemory::SharedMemoryType aType,
     489                 :             Shmem* aMem);
     490                 : 
     491                 :     bool
     492                 :     AllocUnsafeShmem(
     493                 :             size_t aSize,
     494                 :             Shmem::SharedMemory::SharedMemoryType aType,
     495                 :             Shmem* aMem);
     496                 : 
     497                 :     bool
     498                 :     AdoptShmem(
     499                 :             Shmem& aMem,
     500                 :             Shmem* aOutMem);
     501                 : 
     502                 :     bool
     503                 :     DeallocShmem(Shmem& aMem);
     504                 : 
     505                 : private:
     506                 :     virtual void
     507                 :     FatalError(const char* const msg) const;
     508                 : 
     509                 :     void
     510                 :     DestroySubtree(ActorDestroyReason why);
     511                 : 
     512                 :     void
     513                 :     DeallocSubtree();
     514                 : 
     515                 :     template<typename T>
     516                 :     void
     517               0 :     Write(
     518                 :             const T& __v,
     519                 :             Message* __msg)
     520                 :     {
     521               0 :         IPC::WriteParam(__msg, __v);
     522               0 :     }
     523                 : 
     524                 :     template<typename T>
     525                 :     bool
     526               0 :     Read(
     527                 :             T* __v,
     528                 :             const Message* __msg,
     529                 :             void** __iter)
     530                 :     {
     531               0 :         return IPC::ReadParam(__msg, __iter, __v);
     532                 :     }
     533                 : 
     534                 :     void
     535                 :     Write(
     536                 :             PBrowserChild* __v,
     537                 :             Message* __msg,
     538                 :             bool __nullable);
     539                 : 
     540                 :     bool
     541                 :     Read(
     542                 :             PBrowserChild** __v,
     543                 :             const Message* __msg,
     544                 :             void** __iter,
     545                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     546                 : 
     547                 :     void
     548                 :     Write(
     549                 :             PContentDialogChild* __v,
     550                 :             Message* __msg,
     551                 :             bool __nullable);
     552                 : 
     553                 :     bool
     554                 :     Read(
     555                 :             PContentDialogChild** __v,
     556                 :             const Message* __msg,
     557                 :             void** __iter,
     558                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     559                 : 
     560                 :     void
     561                 :     Write(
     562                 :             POfflineCacheUpdateChild* __v,
     563                 :             Message* __msg,
     564                 :             bool __nullable);
     565                 : 
     566                 :     bool
     567                 :     Read(
     568                 :             POfflineCacheUpdateChild** __v,
     569                 :             const Message* __msg,
     570                 :             void** __iter,
     571                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     572                 : 
     573                 :     void
     574                 :     Write(
     575                 :             PContentPermissionRequestChild* __v,
     576                 :             Message* __msg,
     577                 :             bool __nullable);
     578                 : 
     579                 :     bool
     580                 :     Read(
     581                 :             PContentPermissionRequestChild** __v,
     582                 :             const Message* __msg,
     583                 :             void** __iter,
     584                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     585                 : 
     586                 :     void
     587                 :     Write(
     588                 :             PDocumentRendererChild* __v,
     589                 :             Message* __msg,
     590                 :             bool __nullable);
     591                 : 
     592                 :     bool
     593                 :     Read(
     594                 :             PDocumentRendererChild** __v,
     595                 :             const Message* __msg,
     596                 :             void** __iter,
     597                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     598                 : 
     599                 :     void
     600                 :     Write(
     601                 :             PRenderFrameChild* __v,
     602                 :             Message* __msg,
     603                 :             bool __nullable);
     604                 : 
     605                 :     bool
     606                 :     Read(
     607                 :             PRenderFrameChild** __v,
     608                 :             const Message* __msg,
     609                 :             void** __iter,
     610                 :             bool __nullable) NS_WARN_UNUSED_RESULT;
     611                 : 
     612                 :     Channel* mChannel;
     613                 :     int32 mId;
     614                 :     mozilla::ipc::IProtocolManager<mozilla::ipc::RPCChannel::RPCListener>* mManager;
     615                 :     State mState;
     616                 :     // Sorted by pointer value
     617                 :     InfallibleTArray<PContentDialogChild*> mManagedPContentDialogChild;
     618                 :     // Sorted by pointer value
     619                 :     InfallibleTArray<PDocumentRendererChild*> mManagedPDocumentRendererChild;
     620                 :     // Sorted by pointer value
     621                 :     InfallibleTArray<PContentPermissionRequestChild*> mManagedPContentPermissionRequestChild;
     622                 :     // Sorted by pointer value
     623                 :     InfallibleTArray<PRenderFrameChild*> mManagedPRenderFrameChild;
     624                 :     // Sorted by pointer value
     625                 :     InfallibleTArray<POfflineCacheUpdateChild*> mManagedPOfflineCacheUpdateChild;
     626                 : };
     627                 : 
     628                 : 
     629                 : } // namespace dom
     630                 : } // namespace mozilla
     631                 : 
     632                 : #if 0
     633                 : 
     634                 : //-----------------------------------------------------------------------------
     635                 : // Skeleton implementation of abstract actor class
     636                 : 
     637                 : // Header file contents
     638                 : namespace mozilla {
     639                 : namespace dom {
     640                 : class BrowserChild :
     641                 :     public PBrowserChild
     642                 : {
     643                 :     virtual bool
     644                 :     RecvAsyncMessage(
     645                 :             const nsString& aMessage,
     646                 :             const nsString& aJSON);
     647                 : 
     648                 :     virtual bool
     649                 :     RecvShow(const nsIntSize& size);
     650                 : 
     651                 :     virtual bool
     652                 :     RecvLoadURL(const nsCString& uri);
     653                 : 
     654                 :     virtual bool
     655                 :     RecvUpdateDimensions(
     656                 :             const nsRect& rect,
     657                 :             const nsIntSize& size);
     658                 : 
     659                 :     virtual bool
     660                 :     RecvActivate();
     661                 : 
     662                 :     virtual bool
     663                 :     RecvDeactivate();
     664                 : 
     665                 :     virtual bool
     666                 :     RecvMouseEvent(
     667                 :             const nsString& aType,
     668                 :             const float& aX,
     669                 :             const float& aY,
     670                 :             const PRInt32& aButton,
     671                 :             const PRInt32& aClickCount,
     672                 :             const PRInt32& aModifiers,
     673                 :             const bool& aIgnoreRootScrollFrame);
     674                 : 
     675                 :     virtual bool
     676                 :     RecvRealMouseEvent(const nsMouseEvent& event);
     677                 : 
     678                 :     virtual bool
     679                 :     RecvRealKeyEvent(const nsKeyEvent& event);
     680                 : 
     681                 :     virtual bool
     682                 :     RecvMouseScrollEvent(const nsMouseScrollEvent& event);
     683                 : 
     684                 :     virtual bool
     685                 :     RecvKeyEvent(
     686                 :             const nsString& aType,
     687                 :             const PRInt32& aKeyCode,
     688                 :             const PRInt32& aCharCode,
     689                 :             const PRInt32& aModifiers,
     690                 :             const bool& aPreventDefault);
     691                 : 
     692                 :     virtual bool
     693                 :     RecvCompositionEvent(const nsCompositionEvent& event);
     694                 : 
     695                 :     virtual bool
     696                 :     RecvTextEvent(const nsTextEvent& event);
     697                 : 
     698                 :     virtual bool
     699                 :     RecvSelectionEvent(const nsSelectionEvent& event);
     700                 : 
     701                 :     virtual bool
     702                 :     RecvActivateFrameEvent(
     703                 :             const nsString& aType,
     704                 :             const bool& capture);
     705                 : 
     706                 :     virtual bool
     707                 :     RecvLoadRemoteScript(const nsString& aURL);
     708                 : 
     709                 :     virtual bool
     710                 :     RecvDestroy();
     711                 : 
     712                 :     virtual PContentPermissionRequestChild*
     713                 :     AllocPContentPermissionRequest(
     714                 :             const nsCString& aType,
     715                 :             const URI& uri);
     716                 : 
     717                 :     virtual bool
     718                 :     DeallocPContentPermissionRequest(PContentPermissionRequestChild* actor);
     719                 : 
     720                 :     virtual PContentDialogChild*
     721                 :     AllocPContentDialog(
     722                 :             const PRUint32& aType,
     723                 :             const nsCString& aName,
     724                 :             const nsCString& aFeatures,
     725                 :             const InfallibleTArray<PRInt32>& aIntParams,
     726                 :             const InfallibleTArray<nsString>& aStringParams);
     727                 : 
     728                 :     virtual bool
     729                 :     DeallocPContentDialog(PContentDialogChild* actor);
     730                 : 
     731                 :     virtual PRenderFrameChild*
     732                 :     AllocPRenderFrame();
     733                 : 
     734                 :     virtual bool
     735                 :     DeallocPRenderFrame(PRenderFrameChild* actor);
     736                 : 
     737                 :     virtual POfflineCacheUpdateChild*
     738                 :     AllocPOfflineCacheUpdate(
     739                 :             const URI& manifestURI,
     740                 :             const URI& documentURI,
     741                 :             const nsCString& clientID,
     742                 :             const bool& stickDocument);
     743                 : 
     744                 :     virtual bool
     745                 :     DeallocPOfflineCacheUpdate(POfflineCacheUpdateChild* actor);
     746                 : 
     747                 :     virtual PDocumentRendererChild*
     748                 :     AllocPDocumentRenderer(
     749                 :             const nsRect& documentRect,
     750                 :             const gfxMatrix& transform,
     751                 :             const nsString& bgcolor,
     752                 :             const PRUint32& renderFlags,
     753                 :             const bool& flushLayout,
     754                 :             const nsIntSize& renderSize);
     755                 : 
     756                 :     virtual bool
     757                 :     DeallocPDocumentRenderer(PDocumentRendererChild* actor);
     758                 : 
     759                 :     BrowserChild();
     760                 :     virtual ~BrowserChild();
     761                 : };
     762                 : } // namespace dom
     763                 : } // namespace mozilla
     764                 : 
     765                 : 
     766                 : // C++ file contents
     767                 : namespace mozilla {
     768                 : namespace dom {
     769                 : bool
     770                 : BrowserChild::RecvAsyncMessage(
     771                 :         const nsString& aMessage,
     772                 :         const nsString& aJSON)
     773                 : {
     774                 :     return false;
     775                 : }
     776                 : 
     777                 : bool
     778                 : BrowserChild::RecvShow(const nsIntSize& size)
     779                 : {
     780                 :     return false;
     781                 : }
     782                 : 
     783                 : bool
     784                 : BrowserChild::RecvLoadURL(const nsCString& uri)
     785                 : {
     786                 :     return false;
     787                 : }
     788                 : 
     789                 : bool
     790                 : BrowserChild::RecvUpdateDimensions(
     791                 :         const nsRect& rect,
     792                 :         const nsIntSize& size)
     793                 : {
     794                 :     return false;
     795                 : }
     796                 : 
     797                 : bool
     798                 : BrowserChild::RecvActivate()
     799                 : {
     800                 :     return false;
     801                 : }
     802                 : 
     803                 : bool
     804                 : BrowserChild::RecvDeactivate()
     805                 : {
     806                 :     return false;
     807                 : }
     808                 : 
     809                 : bool
     810                 : BrowserChild::RecvMouseEvent(
     811                 :         const nsString& aType,
     812                 :         const float& aX,
     813                 :         const float& aY,
     814                 :         const PRInt32& aButton,
     815                 :         const PRInt32& aClickCount,
     816                 :         const PRInt32& aModifiers,
     817                 :         const bool& aIgnoreRootScrollFrame)
     818                 : {
     819                 :     return false;
     820                 : }
     821                 : 
     822                 : bool
     823                 : BrowserChild::RecvRealMouseEvent(const nsMouseEvent& event)
     824                 : {
     825                 :     return false;
     826                 : }
     827                 : 
     828                 : bool
     829                 : BrowserChild::RecvRealKeyEvent(const nsKeyEvent& event)
     830                 : {
     831                 :     return false;
     832                 : }
     833                 : 
     834                 : bool
     835                 : BrowserChild::RecvMouseScrollEvent(const nsMouseScrollEvent& event)
     836                 : {
     837                 :     return false;
     838                 : }
     839                 : 
     840                 : bool
     841                 : BrowserChild::RecvKeyEvent(
     842                 :         const nsString& aType,
     843                 :         const PRInt32& aKeyCode,
     844                 :         const PRInt32& aCharCode,
     845                 :         const PRInt32& aModifiers,
     846                 :         const bool& aPreventDefault)
     847                 : {
     848                 :     return false;
     849                 : }
     850                 : 
     851                 : bool
     852                 : BrowserChild::RecvCompositionEvent(const nsCompositionEvent& event)
     853                 : {
     854                 :     return false;
     855                 : }
     856                 : 
     857                 : bool
     858                 : BrowserChild::RecvTextEvent(const nsTextEvent& event)
     859                 : {
     860                 :     return false;
     861                 : }
     862                 : 
     863                 : bool
     864                 : BrowserChild::RecvSelectionEvent(const nsSelectionEvent& event)
     865                 : {
     866                 :     return false;
     867                 : }
     868                 : 
     869                 : bool
     870                 : BrowserChild::RecvActivateFrameEvent(
     871                 :         const nsString& aType,
     872                 :         const bool& capture)
     873                 : {
     874                 :     return false;
     875                 : }
     876                 : 
     877                 : bool
     878                 : BrowserChild::RecvLoadRemoteScript(const nsString& aURL)
     879                 : {
     880                 :     return false;
     881                 : }
     882                 : 
     883                 : bool
     884                 : BrowserChild::RecvDestroy()
     885                 : {
     886                 :     return false;
     887                 : }
     888                 : 
     889                 : PContentPermissionRequestChild*
     890                 : BrowserChild::AllocPContentPermissionRequest(
     891                 :         const nsCString& aType,
     892                 :         const URI& uri)
     893                 : {
     894                 :     return 0;
     895                 : }
     896                 : 
     897                 : bool
     898                 : BrowserChild::DeallocPContentPermissionRequest(PContentPermissionRequestChild* actor)
     899                 : {
     900                 :     return false;
     901                 : }
     902                 : 
     903                 : PContentDialogChild*
     904                 : BrowserChild::AllocPContentDialog(
     905                 :         const PRUint32& aType,
     906                 :         const nsCString& aName,
     907                 :         const nsCString& aFeatures,
     908                 :         const InfallibleTArray<PRInt32>& aIntParams,
     909                 :         const InfallibleTArray<nsString>& aStringParams)
     910                 : {
     911                 :     return 0;
     912                 : }
     913                 : 
     914                 : bool
     915                 : BrowserChild::DeallocPContentDialog(PContentDialogChild* actor)
     916                 : {
     917                 :     return false;
     918                 : }
     919                 : 
     920                 : PRenderFrameChild*
     921                 : BrowserChild::AllocPRenderFrame()
     922                 : {
     923                 :     return 0;
     924                 : }
     925                 : 
     926                 : bool
     927                 : BrowserChild::DeallocPRenderFrame(PRenderFrameChild* actor)
     928                 : {
     929                 :     return false;
     930                 : }
     931                 : 
     932                 : POfflineCacheUpdateChild*
     933                 : BrowserChild::AllocPOfflineCacheUpdate(
     934                 :         const URI& manifestURI,
     935                 :         const URI& documentURI,
     936                 :         const nsCString& clientID,
     937                 :         const bool& stickDocument)
     938                 : {
     939                 :     return 0;
     940                 : }
     941                 : 
     942                 : bool
     943                 : BrowserChild::DeallocPOfflineCacheUpdate(POfflineCacheUpdateChild* actor)
     944                 : {
     945                 :     return false;
     946                 : }
     947                 : 
     948                 : PDocumentRendererChild*
     949                 : BrowserChild::AllocPDocumentRenderer(
     950                 :         const nsRect& documentRect,
     951                 :         const gfxMatrix& transform,
     952                 :         const nsString& bgcolor,
     953                 :         const PRUint32& renderFlags,
     954                 :         const bool& flushLayout,
     955                 :         const nsIntSize& renderSize)
     956                 : {
     957                 :     return 0;
     958                 : }
     959                 : 
     960                 : bool
     961                 : BrowserChild::DeallocPDocumentRenderer(PDocumentRendererChild* actor)
     962                 : {
     963                 :     return false;
     964                 : }
     965                 : 
     966                 : BrowserChild::BrowserChild()
     967                 : {
     968                 :     MOZ_COUNT_CTOR(BrowserChild);
     969                 : }
     970                 : 
     971                 : BrowserChild::~BrowserChild()
     972                 : {
     973                 :     MOZ_COUNT_DTOR(BrowserChild);
     974                 : }
     975                 : 
     976                 : } // namespace dom
     977                 : } // namespace mozilla
     978                 : #endif // if 0
     979                 : 
     980                 : #endif // ifndef PBrowserChild_h

Generated by: LCOV version 1.7