mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fa5a303828
--HG-- rename : browser/components/shell/src/Makefile.in => browser/components/shell/Makefile.in rename : browser/components/shell/src/nsGNOMEShellService.cpp => browser/components/shell/nsGNOMEShellService.cpp rename : browser/components/shell/src/nsGNOMEShellService.h => browser/components/shell/nsGNOMEShellService.h rename : browser/components/shell/public/nsIMacShellService.idl => browser/components/shell/nsIMacShellService.idl rename : browser/components/shell/public/nsIShellService.idl => browser/components/shell/nsIShellService.idl rename : browser/components/shell/public/nsIWindowsShellService.idl => browser/components/shell/nsIWindowsShellService.idl rename : browser/components/shell/src/nsMacShellService.cpp => browser/components/shell/nsMacShellService.cpp rename : browser/components/shell/src/nsMacShellService.h => browser/components/shell/nsMacShellService.h rename : browser/components/shell/src/nsSetDefaultBrowser.js => browser/components/shell/nsSetDefaultBrowser.js rename : browser/components/shell/src/nsSetDefaultBrowser.manifest => browser/components/shell/nsSetDefaultBrowser.manifest rename : browser/components/shell/src/nsShellService.h => browser/components/shell/nsShellService.h rename : browser/components/shell/src/nsWindowsShellService.cpp => browser/components/shell/nsWindowsShellService.cpp rename : browser/components/shell/src/nsWindowsShellService.h => browser/components/shell/nsWindowsShellService.h
37 lines
996 B
C++
37 lines
996 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#ifndef nsgnomeshellservice_h____
|
|
#define nsgnomeshellservice_h____
|
|
|
|
#include "nsIShellService.h"
|
|
#include "nsStringAPI.h"
|
|
#include "mozilla/Attributes.h"
|
|
|
|
class nsGNOMEShellService MOZ_FINAL : public nsIShellService
|
|
{
|
|
public:
|
|
nsGNOMEShellService() : mCheckedThisSession(false), mAppIsInPath(false) { }
|
|
|
|
NS_DECL_ISUPPORTS
|
|
NS_DECL_NSISHELLSERVICE
|
|
|
|
nsresult Init();
|
|
|
|
private:
|
|
~nsGNOMEShellService() {}
|
|
|
|
bool KeyMatchesAppName(const char *aKeyValue) const;
|
|
bool CheckHandlerMatchesAppName(const nsACString& handler) const;
|
|
|
|
bool GetAppPathFromLauncher();
|
|
bool mCheckedThisSession;
|
|
bool mUseLocaleFilenames;
|
|
nsCString mAppPath;
|
|
bool mAppIsInPath;
|
|
};
|
|
|
|
#endif // nsgnomeshellservice_h____
|