michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsShellService.h" michael@0: #include "nsString.h" michael@0: michael@0: #include "AndroidBridge.h" michael@0: michael@0: using namespace mozilla::widget::android; michael@0: michael@0: NS_IMPL_ISUPPORTS(nsShellService, nsIShellService) michael@0: michael@0: NS_IMETHODIMP michael@0: nsShellService::SwitchTask() michael@0: { michael@0: return NS_ERROR_NOT_IMPLEMENTED; michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: nsShellService::CreateShortcut(const nsAString& aTitle, const nsAString& aURI, michael@0: const nsAString& aIconData, const nsAString& aIntent) michael@0: { michael@0: if (!aTitle.Length() || !aURI.Length() || !aIconData.Length()) michael@0: return NS_ERROR_FAILURE; michael@0: michael@0: mozilla::widget::android::GeckoAppShell::CreateShortcut(aTitle, aURI, aIconData, aIntent); michael@0: return NS_OK; michael@0: }