browser/components/shell/nsWindowsShellService.h
author Ryan VanderMeulen <ryanvm@gmail.com>
Thu, 25 Jun 2015 19:48:42 -0400
changeset 281060 1a326aaaba371e18e090f98ca1c4474bbdce2fca
parent 280461 03f47dc4ada54ae676dfc058f42d7a1990e2d558
child 281261 28e6664ad1a16463932d397aaac7f3fbc6bde73b
permissions -rw-r--r--
Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage.

/* -*- 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 nswindowsshellservice_h____
#define nswindowsshellservice_h____

#include "nscore.h"
#include "nsStringAPI.h"
#include "nsIWindowsShellService.h"
#include "nsITimer.h"

#include <windows.h>
#include <ole2.h>

class nsWindowsShellService : public nsIWindowsShellService
{
  virtual ~nsWindowsShellService();

public:
  nsWindowsShellService();

  NS_DECL_ISUPPORTS
  NS_DECL_NSISHELLSERVICE
  NS_DECL_NSIWINDOWSSHELLSERVICE

protected:
  bool IsDefaultBrowserVista(bool aCheckAllTypes, bool* aIsDefaultBrowser);
  nsresult LaunchControlPanelDefaultPrograms();
  nsresult LaunchModernSettingsDialogDefaultApps();
  nsresult InvokeHTTPOpenAsVerb();
  nsresult LaunchHTTPHandlerPane();

private:
  bool      mCheckedThisSession;
};

#endif // nswindowsshellservice_h____