Lines Matching defs:nsISupports
347 nsQueryInterface( nsISupports* aRawPtr )
356 nsISupports* mRawPtr;
362 nsQueryInterfaceWithError( nsISupports* aRawPtr, nsresult* error )
372 nsISupports* mRawPtr;
378 do_QueryInterface( nsISupports* aRawPtr )
385 do_QueryInterface( nsISupports* aRawPtr, nsresult* error )
416 This should really be an |nsCOMPtr<nsISupports>|, but this wouldn't work
428 nsCOMPtr_base( nsISupports* rawPtr = 0 )
436 NS_COM void NS_FASTCALL assign_with_AddRef( nsISupports* );
443 NS_MAY_ALIAS_PTR(nsISupports) mRawPtr;
446 assign_assuming_AddRef( nsISupports* newPtr )
456 nsISupports* oldPtr = mRawPtr;
480 void assign_with_AddRef( nsISupports* );
652 nsISupports* temp = rhs.mRawPtr;
670 nsISupports* temp = rhs;
774 Specializing |nsCOMPtr| for |nsISupports| allows us to use |nsCOMPtr<nsISupports>| the
775 same way people use |nsISupports*| and |void*|, i.e., as a `catch-all' pointer pointing
776 to any valid [XP]COM interface. Otherwise, an |nsCOMPtr<nsISupports>| would only be able
777 to point to the single [XP]COM-correct |nsISupports| instance within an object; extra
783 class nsCOMPtr<nsISupports>
787 typedef nsISupports element_type;
798 nsCOMPtr( const nsCOMPtr<nsISupports>& aSmartPtr )
807 nsCOMPtr( nsISupports* aRawPtr )
816 nsCOMPtr( const already_AddRefed<nsISupports>& aSmartPtr )
828 assign_from_qi(qi, NS_GET_IID(nsISupports));
836 assign_from_qi_with_error(qi, NS_GET_IID(nsISupports));
845 assign_from_helper(helper, NS_GET_IID(nsISupports));
851 nsCOMPtr<nsISupports>&
852 operator=( const nsCOMPtr<nsISupports>& rhs )
859 nsCOMPtr<nsISupports>&
860 operator=( nsISupports* rhs )
867 nsCOMPtr<nsISupports>&
868 operator=( const already_AddRefed<nsISupports>& rhs )
875 nsCOMPtr<nsISupports>&
879 assign_from_qi(rhs, NS_GET_IID(nsISupports));
883 nsCOMPtr<nsISupports>&
887 assign_from_qi_with_error(rhs, NS_GET_IID(nsISupports));
891 nsCOMPtr<nsISupports>&
896 assign_from_helper(rhs, NS_GET_IID(nsISupports));
901 swap( nsCOMPtr<nsISupports>& rhs )
904 nsISupports* temp = rhs.mRawPtr;
914 swap( nsISupports*& rhs )
917 nsISupports* temp = rhs;
927 nsDerivedSafe<nsISupports>*
930 Prefer the implicit conversion provided automatically by |operator nsDerivedSafe<nsISupports>*() const|.
933 Returns a |nsDerivedSafe<nsISupports>*| to deny clients the use of |AddRef| and |Release|.
936 return NS_REINTERPRET_CAST(nsDerivedSafe<nsISupports>*, mRawPtr);
939 operator nsDerivedSafe<nsISupports>*() const
951 nsDerivedSafe<nsISupports>*
961 nsCOMPtr<nsISupports>*
966 return NS_CONST_CAST(nsCOMPtr<nsISupports>*, this);
971 nsCOMPtr<nsISupports>*
979 const nsCOMPtr<nsISupports>*
991 nsDerivedSafe<nsISupports>&
1000 friend class nsGetterAddRefs<nsISupports>;
1003 nsISupports**
1007 return NS_REINTERPRET_CAST(nsISupports**, begin_assignment());
1010 return NS_REINTERPRET_CAST(nsISupports**, &mRawPtr);
1018 nsCOMPtr<T>::assign_with_AddRef( nsISupports* rawPtr )
1110 a |void**|, a |T**|, or an |nsISupports**| as needed, that the outer call (|QueryInterface| in this
1142 operator nsISupports**()
1144 return NS_REINTERPRET_CAST(nsISupports**, mTargetSmartPtr.StartAssignment());
1164 class nsGetterAddRefs<nsISupports>
1168 nsGetterAddRefs( nsCOMPtr<nsISupports>& aSmartPtr )
1186 operator nsISupports**()
1191 nsISupports*&
1198 nsCOMPtr<nsISupports>& mTargetSmartPtr;
1390 SameCOMIdentity( nsISupports* lhs, nsISupports* rhs )
1392 return nsCOMPtr<nsISupports>( do_QueryInterface(lhs) ) == nsCOMPtr<nsISupports>( do_QueryInterface(rhs) );