1426 |
1426 |
1427 diff --git a/browser/components/shell/src/nsKDEShellService.cpp b/browser/components/shell/src/nsKDEShellService.cpp |
1427 diff --git a/browser/components/shell/src/nsKDEShellService.cpp b/browser/components/shell/src/nsKDEShellService.cpp |
1428 new file mode 100644 |
1428 new file mode 100644 |
1429 --- /dev/null |
1429 --- /dev/null |
1430 +++ b/browser/components/shell/src/nsKDEShellService.cpp |
1430 +++ b/browser/components/shell/src/nsKDEShellService.cpp |
1431 @@ -0,0 +1,264 @@ |
1431 @@ -0,0 +1,234 @@ |
1432 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
1432 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
1433 +/* ***** BEGIN LICENSE BLOCK ***** |
1433 +/* This Source Code Form is subject to the terms of the Mozilla Public |
1434 + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
1434 + * License, v. 2.0. If a copy of the MPL was not distributed with this |
1435 + * |
1435 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
1436 + * The contents of this file are subject to the Mozilla Public License Version |
|
1437 + * 1.1 (the "License"); you may not use this file except in compliance with |
|
1438 + * the License. You may obtain a copy of the License at |
|
1439 + * http://www.mozilla.org/MPL/ |
|
1440 + * |
|
1441 + * Software distributed under the License is distributed on an "AS IS" basis, |
|
1442 + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
|
1443 + * for the specific language governing rights and limitations under the |
|
1444 + * License. |
|
1445 + * |
|
1446 + * The Original Code is Shell Service. |
|
1447 + * |
|
1448 + * The Initial Developer of the Original Code is mozilla.org. |
|
1449 + * Portions created by the Initial Developer are Copyright (C) 2004 |
|
1450 + * the Initial Developer. All Rights Reserved. |
|
1451 + * |
|
1452 + * Contributor(s): |
|
1453 + * |
|
1454 + * Alternatively, the contents of this file may be used under the terms of |
|
1455 + * either the GNU General Public License Version 2 or later (the "GPL"), or |
|
1456 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
|
1457 + * in which case the provisions of the GPL or the LGPL are applicable instead |
|
1458 + * of those above. If you wish to allow use of your version of this file only |
|
1459 + * under the terms of either the GPL or the LGPL, and not to allow others to |
|
1460 + * use your version of this file under the terms of the MPL, indicate your |
|
1461 + * decision by deleting the provisions above and replace them with the notice |
|
1462 + * and other provisions required by the GPL or the LGPL. If you do not delete |
|
1463 + * the provisions above, a recipient may use your version of this file under |
|
1464 + * the terms of any one of the MPL, the GPL or the LGPL. |
|
1465 + * |
|
1466 + * ***** END LICENSE BLOCK ***** */ |
|
1467 + |
1436 + |
1468 +#include "nsKDEShellService.h" |
1437 +#include "nsKDEShellService.h" |
1469 +#include "nsShellService.h" |
1438 +#include "nsShellService.h" |
1470 +#include "nsKDEUtils.h" |
1439 +#include "nsKDEUtils.h" |
1471 +#include "nsCOMPtr.h" |
1440 +#include "nsCOMPtr.h" |
1488 + |
1457 + |
1489 +NS_IMPL_ISUPPORTS1(nsKDEShellService, nsIShellService) |
1458 +NS_IMPL_ISUPPORTS1(nsKDEShellService, nsIShellService) |
1490 + |
1459 + |
1491 +NS_IMETHODIMP |
1460 +NS_IMETHODIMP |
1492 +nsKDEShellService::IsDefaultBrowser(bool aStartupCheck, |
1461 +nsKDEShellService::IsDefaultBrowser(bool aStartupCheck, |
|
1462 + bool aForAllTypes, |
1493 + bool* aIsDefaultBrowser) |
1463 + bool* aIsDefaultBrowser) |
1494 + { |
1464 + { |
1495 + *aIsDefaultBrowser = false; |
1465 + *aIsDefaultBrowser = false; |
1496 + if (aStartupCheck) |
1466 + if (aStartupCheck) |
1497 + mCheckedThisSession = true; |
1467 + mCheckedThisSession = true; |