LCOV - code coverage report
Current view: directory - embedding/components/build - nsEmbeddingModule.cpp (source / functions) Found Hit Coverage
Test: app.info Lines: 12 2 16.7 %
Date: 2012-06-02 Functions: 12 2 16.7 %

       1                 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 : /* ***** BEGIN LICENSE BLOCK *****
       3                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       4                 :  *
       5                 :  * The contents of this file are subject to the Mozilla Public License Version
       6                 :  * 1.1 (the "License"); you may not use this file except in compliance with
       7                 :  * the License. You may obtain a copy of the License at
       8                 :  * http://www.mozilla.org/MPL/
       9                 :  *
      10                 :  * Software distributed under the License is distributed on an "AS IS" basis,
      11                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12                 :  * for the specific language governing rights and limitations under the
      13                 :  * License.
      14                 :  *
      15                 :  * The Original Code is mozilla.org code.
      16                 :  *
      17                 :  * The Initial Developer of the Original Code is
      18                 :  * Netscape Communications Corporation.
      19                 :  * Portions created by the Initial Developer are Copyright (C) 2001
      20                 :  * the Initial Developer. All Rights Reserved.
      21                 :  *
      22                 :  * Contributor(s):
      23                 :  *
      24                 :  * Alternatively, the contents of this file may be used under the terms of
      25                 :  * either the GNU General Public License Version 2 or later (the "GPL"), or
      26                 :  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      27                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      28                 :  * of those above. If you wish to allow use of your version of this file only
      29                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      30                 :  * use your version of this file under the terms of the MPL, indicate your
      31                 :  * decision by deleting the provisions above and replace them with the notice
      32                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      33                 :  * the provisions above, a recipient may use your version of this file under
      34                 :  * the terms of any one of the MPL, the GPL or the LGPL.
      35                 :  *
      36                 :  * ***** END LICENSE BLOCK ***** */
      37                 : 
      38                 : #include "mozilla/ModuleUtils.h"
      39                 : #include "nsDialogParamBlock.h"
      40                 : #include "nsWindowWatcher.h"
      41                 : #include "nsAppStartupNotifier.h"
      42                 : #include "nsFind.h"
      43                 : #include "nsWebBrowserFind.h"
      44                 : #include "nsWebBrowserPersist.h"
      45                 : #include "nsCommandManager.h"
      46                 : #include "nsControllerCommandTable.h"
      47                 : #include "nsCommandParams.h"
      48                 : #include "nsCommandGroup.h"
      49                 : #include "nsBaseCommandController.h"
      50                 : #include "nsNetCID.h"
      51                 : #include "nsEmbedCID.h"
      52                 : 
      53                 : #ifdef NS_PRINTING
      54                 : #include "nsPrintingPromptService.h"
      55                 : #endif
      56                 : 
      57                 : 
      58             206 : NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsWindowWatcher, Init)
      59               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppStartupNotifier)
      60               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsFind)
      61               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsWebBrowserFind)
      62             688 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsWebBrowserPersist)
      63               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsControllerCommandTable)
      64               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsCommandManager)
      65               0 : NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsCommandParams, Init)
      66               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsControllerCommandGroup)
      67               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsBaseCommandController)
      68                 : 
      69                 : #ifdef MOZ_XUL
      70               0 : NS_GENERIC_FACTORY_CONSTRUCTOR(nsDialogParamBlock)
      71                 : #ifdef NS_PRINTING
      72               0 : NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPrintingPromptService, Init)
      73                 : #endif
      74                 : #endif
      75                 : 
      76                 : #ifdef MOZ_XUL
      77                 : NS_DEFINE_NAMED_CID(NS_DIALOGPARAMBLOCK_CID);
      78                 : #ifdef NS_PRINTING
      79                 : NS_DEFINE_NAMED_CID(NS_PRINTINGPROMPTSERVICE_CID);
      80                 : #endif
      81                 : #endif
      82                 : NS_DEFINE_NAMED_CID(NS_WINDOWWATCHER_CID);
      83                 : NS_DEFINE_NAMED_CID(NS_FIND_CID);
      84                 : NS_DEFINE_NAMED_CID(NS_WEB_BROWSER_FIND_CID);
      85                 : NS_DEFINE_NAMED_CID(NS_APPSTARTUPNOTIFIER_CID);
      86                 : NS_DEFINE_NAMED_CID(NS_WEBBROWSERPERSIST_CID);
      87                 : NS_DEFINE_NAMED_CID(NS_CONTROLLERCOMMANDTABLE_CID);
      88                 : NS_DEFINE_NAMED_CID(NS_COMMAND_MANAGER_CID);
      89                 : NS_DEFINE_NAMED_CID(NS_COMMAND_PARAMS_CID);
      90                 : NS_DEFINE_NAMED_CID(NS_CONTROLLER_COMMAND_GROUP_CID);
      91                 : NS_DEFINE_NAMED_CID(NS_BASECOMMANDCONTROLLER_CID);
      92                 : 
      93                 : static const mozilla::Module::CIDEntry kEmbeddingCIDs[] = {
      94                 : #ifdef MOZ_XUL
      95                 :     { &kNS_DIALOGPARAMBLOCK_CID, false, NULL, nsDialogParamBlockConstructor },
      96                 : #ifdef NS_PRINTING
      97                 :     { &kNS_PRINTINGPROMPTSERVICE_CID, false, NULL, nsPrintingPromptServiceConstructor },
      98                 : #endif
      99                 : #endif
     100                 :     { &kNS_WINDOWWATCHER_CID, false, NULL, nsWindowWatcherConstructor },
     101                 :     { &kNS_FIND_CID, false, NULL, nsFindConstructor },
     102                 :     { &kNS_WEB_BROWSER_FIND_CID, false, NULL, nsWebBrowserFindConstructor },
     103                 :     { &kNS_APPSTARTUPNOTIFIER_CID, false, NULL, nsAppStartupNotifierConstructor },
     104                 :     { &kNS_WEBBROWSERPERSIST_CID, false, NULL, nsWebBrowserPersistConstructor },
     105                 :     { &kNS_CONTROLLERCOMMANDTABLE_CID, false, NULL, nsControllerCommandTableConstructor },
     106                 :     { &kNS_COMMAND_MANAGER_CID, false, NULL, nsCommandManagerConstructor },
     107                 :     { &kNS_COMMAND_PARAMS_CID, false, NULL, nsCommandParamsConstructor },
     108                 :     { &kNS_CONTROLLER_COMMAND_GROUP_CID, false, NULL, nsControllerCommandGroupConstructor },
     109                 :     { &kNS_BASECOMMANDCONTROLLER_CID, false, NULL, nsBaseCommandControllerConstructor },
     110                 :     { NULL }
     111                 : };
     112                 : 
     113                 : static const mozilla::Module::ContractIDEntry kEmbeddingContracts[] = {
     114                 : #ifdef MOZ_XUL
     115                 :     { NS_DIALOGPARAMBLOCK_CONTRACTID, &kNS_DIALOGPARAMBLOCK_CID },
     116                 : #ifdef NS_PRINTING
     117                 :     { NS_PRINTINGPROMPTSERVICE_CONTRACTID, &kNS_PRINTINGPROMPTSERVICE_CID },
     118                 : #endif
     119                 : #endif
     120                 :     { NS_WINDOWWATCHER_CONTRACTID, &kNS_WINDOWWATCHER_CID },
     121                 :     { NS_FIND_CONTRACTID, &kNS_FIND_CID },
     122                 :     { NS_WEB_BROWSER_FIND_CONTRACTID, &kNS_WEB_BROWSER_FIND_CID },
     123                 :     { NS_APPSTARTUPNOTIFIER_CONTRACTID, &kNS_APPSTARTUPNOTIFIER_CID },
     124                 :     { NS_WEBBROWSERPERSIST_CONTRACTID, &kNS_WEBBROWSERPERSIST_CID },
     125                 :     { NS_CONTROLLERCOMMANDTABLE_CONTRACTID, &kNS_CONTROLLERCOMMANDTABLE_CID },
     126                 :     { NS_COMMAND_MANAGER_CONTRACTID, &kNS_COMMAND_MANAGER_CID },
     127                 :     { NS_COMMAND_PARAMS_CONTRACTID, &kNS_COMMAND_PARAMS_CID },
     128                 :     { NS_CONTROLLER_COMMAND_GROUP_CONTRACTID, &kNS_CONTROLLER_COMMAND_GROUP_CID },
     129                 :     { NS_BASECOMMANDCONTROLLER_CONTRACTID, &kNS_BASECOMMANDCONTROLLER_CID },
     130                 :     { NULL }
     131                 : };
     132                 : 
     133                 : static const mozilla::Module kEmbeddingModule = {
     134                 :     mozilla::Module::kVersion,
     135                 :     kEmbeddingCIDs,
     136                 :     kEmbeddingContracts
     137                 : };
     138                 : 
     139                 : NSMODULE_DEFN(embedcomponents) = &kEmbeddingModule;

Generated by: LCOV version 1.7