2012-05-21 15:12:37 +04: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 10:51:09 +03:00
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
#include "nsNativeAppSupportBase.h"
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
nsresult NS_CreateNativeAppSupport(nsINativeAppSupport** aResult) {
|
|
|
|
nsNativeAppSupportBase* native = new nsNativeAppSupportBase();
|
|
|
|
if (!native) return NS_ERROR_OUT_OF_MEMORY;
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
*aResult = native;
|
|
|
|
NS_ADDREF(*aResult);
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
return NS_OK;
|
|
|
|
}
|