1372 + if( !nsKDEUtils::kdeSupport()) |
1372 + if( !nsKDEUtils::kdeSupport()) |
1373 + return NS_ERROR_NOT_AVAILABLE; |
1373 + return NS_ERROR_NOT_AVAILABLE; |
1374 + return NS_OK; |
1374 + return NS_OK; |
1375 +} |
1375 +} |
1376 + |
1376 + |
1377 +NS_IMPL_ISUPPORTS(nsKDEShellService, nsIShellService) |
1377 +NS_IMPL_ISUPPORTS(nsKDEShellService, nsIGNOMEShellService, nsIShellService) |
1378 + |
1378 + |
1379 +NS_IMETHODIMP |
1379 +NS_IMETHODIMP |
1380 +nsKDEShellService::IsDefaultBrowser(bool aStartupCheck, |
1380 +nsKDEShellService::IsDefaultBrowser(bool aStartupCheck, |
1381 + bool aForAllTypes, |
1381 + bool aForAllTypes, |
1382 + bool* aIsDefaultBrowser) |
1382 + bool* aIsDefaultBrowser) |
1549 +} |
1549 +} |
1550 diff --git a/browser/components/shell/nsKDEShellService.h b/browser/components/shell/nsKDEShellService.h |
1550 diff --git a/browser/components/shell/nsKDEShellService.h b/browser/components/shell/nsKDEShellService.h |
1551 new file mode 100644 |
1551 new file mode 100644 |
1552 --- /dev/null |
1552 --- /dev/null |
1553 +++ b/browser/components/shell/nsKDEShellService.h |
1553 +++ b/browser/components/shell/nsKDEShellService.h |
1554 @@ -0,0 +1,29 @@ |
1554 @@ -0,0 +1,30 @@ |
1555 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
1555 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
1556 +/* This Source Code Form is subject to the terms of the Mozilla Public |
1556 +/* This Source Code Form is subject to the terms of the Mozilla Public |
1557 + * License, v. 2.0. If a copy of the MPL was not distributed with this |
1557 + * License, v. 2.0. If a copy of the MPL was not distributed with this |
1558 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
1558 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
1559 + |
1559 + |
1560 +#ifndef nskdeshellservice_h____ |
1560 +#ifndef nskdeshellservice_h____ |
1561 +#define nskdeshellservice_h____ |
1561 +#define nskdeshellservice_h____ |
1562 + |
1562 + |
1563 +#include "nsIShellService.h" |
1563 +#include "nsIGNOMEShellService.h" |
1564 +#include "nsStringAPI.h" |
1564 +#include "nsStringAPI.h" |
1565 +#include "mozilla/Attributes.h" |
1565 +#include "mozilla/Attributes.h" |
1566 + |
1566 + |
1567 +class nsKDEShellService final : public nsIShellService |
1567 +class nsKDEShellService final : public nsIGNOMEShellService |
1568 +{ |
1568 +{ |
1569 +public: |
1569 +public: |
1570 + nsKDEShellService() : mCheckedThisSession(false) { } |
1570 + nsKDEShellService() : mCheckedThisSession(false) { } |
1571 + |
1571 + |
1572 + NS_DECL_ISUPPORTS |
1572 + NS_DECL_ISUPPORTS |
|
1573 + NS_DECL_NSIGNOMESHELLSERVICE |
1573 + NS_DECL_NSISHELLSERVICE |
1574 + NS_DECL_NSISHELLSERVICE |
1574 + |
1575 + |
1575 + nsresult Init(); |
1576 + nsresult Init(); |
1576 + |
1577 + |
1577 +private: |
1578 +private: |
1620 + |
1621 + |
1621 + |
1622 + |
1622 +#ifndef nsunixshellservice_h____ |
1623 +#ifndef nsunixshellservice_h____ |
1623 +#define nsunixshellservice_h____ |
1624 +#define nsunixshellservice_h____ |
1624 + |
1625 + |
1625 +#include "nsIShellService.h" |
1626 +#include "nsIGNOMEShellService.h" |
1626 + |
1627 + |
1627 +NS_METHOD |
1628 +NS_METHOD |
1628 +nsUnixShellServiceConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult); |
1629 +nsUnixShellServiceConstructor(nsISupports *aOuter, REFNSIID aIID, void **aResult); |
1629 + |
1630 + |
1630 +#endif // nsunixshellservice_h____ |
1631 +#endif // nsunixshellservice_h____ |