FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
ActiveXFactoryDefinitions.h
1 #pragma once
2 #ifndef H_ActiveXFactoryDefinitions
3 #define H_ActiveXFactoryDefinitions
4 /**********************************************************\
5 Original Author: Richard Bateman (taxilian)
6 
7 Created: Sep 11, 2010
8 License: Dual license model; choose one of two:
9  New BSD License
10  http://www.opensource.org/licenses/bsd-license.php
11  - or -
12  GNU Lesser General Public License, version 2.1
13  http://www.gnu.org/licenses/lgpl-2.1.html
14 
15 Copyright 2010 Richard Bateman, Firebreath development team
16 \**********************************************************/
17 
18 #include "FBPointers.h"
19 #include "ShareableReference.h"
20 
21 struct IDispatchEx;
22 typedef long HRESULT;
23 
24 namespace FB {
25  FB_FORWARD_PTR(BrowserHost);
26  FB_FORWARD_PTR(JSAPI);
27  typedef boost::weak_ptr<FB::ShareableReference<IDispatchEx> > WeakIDispatchExRef;
28 }
29 
30 IDispatchEx* _getCOMJSWrapper(const FB::BrowserHostPtr& host, const FB::JSAPIWeakPtr& api, bool autoRelease = false);
31 const FB::WeakIDispatchExRef _getWeakRefFromCOMJSWrapper(IDispatchEx* wrapper);
32 
33 HRESULT _updateRegistry( bool res );
34 
35 #endif // H_NpapiFactoryDefinitions
36 
boost::weak_ptr< FB::JSAPI > JSAPIWeakPtr
Defines an alias for a JSAPI weak_ptr (you should never use a JSAPI* directly)
Definition: APITypes.h:88
boost::shared_ptr< FB::BrowserHost > BrowserHostPtr
Defines an alias representing a BrowserHost shared_ptr (you should never use a BrowserHost* directly)...
Definition: APITypes.h:117