1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #include "nsNativeAppSupportBase.h" 7 8 nsNativeAppSupportBase::nsNativeAppSupportBase() = default; 9 10 nsNativeAppSupportBase::~nsNativeAppSupportBase() = default; 11 NS_IMPL_ISUPPORTS(nsNativeAppSupportBase,nsINativeAppSupport)12NS_IMPL_ISUPPORTS(nsNativeAppSupportBase, nsINativeAppSupport) 13 14 // Start answer defaults to OK. 15 NS_IMETHODIMP 16 nsNativeAppSupportBase::Start(bool* result) { 17 *result = true; 18 return NS_OK; 19 } 20 21 NS_IMETHODIMP Enable()22nsNativeAppSupportBase::Enable() { return NS_OK; } 23 24 NS_IMETHODIMP ReOpen()25nsNativeAppSupportBase::ReOpen() { return NS_OK; } 26 27 NS_IMETHODIMP OnLastWindowClosing()28nsNativeAppSupportBase::OnLastWindowClosing() { return NS_OK; } 29