2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-03-03 07:51:09 +00:00
|
|
|
|
2004-06-17 21:23:51 +00:00
|
|
|
#include "nsNativeAppSupportBase.h"
|
2004-03-03 07:51:09 +00:00
|
|
|
|
2004-06-17 21:23:51 +00:00
|
|
|
nsresult
|
|
|
|
NS_CreateNativeAppSupport( nsINativeAppSupport **aResult )
|
2004-03-03 07:51:09 +00:00
|
|
|
{
|
2004-06-17 21:23:51 +00:00
|
|
|
nsNativeAppSupportBase* native = new nsNativeAppSupportBase();
|
|
|
|
if (!native) return NS_ERROR_OUT_OF_MEMORY;
|
2004-03-03 07:51:09 +00:00
|
|
|
|
2004-06-17 21:23:51 +00:00
|
|
|
*aResult = native;
|
|
|
|
NS_ADDREF( *aResult );
|
2004-03-03 07:51:09 +00:00
|
|
|
|
2004-06-17 21:23:51 +00:00
|
|
|
return NS_OK;
|
|
|
|
}
|