nsToolkitShellService.h (788B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef nstoolkitshellservice_h____ 7 #define nstoolkitshellservice_h____ 8 9 #include "nsIToolkitShellService.h" 10 11 class nsToolkitShellService : public nsIToolkitShellService { 12 public: 13 NS_IMETHOD IsDefaultBrowser(bool aForAllTypes, bool* aIsDefaultBrowser) = 0; 14 15 NS_IMETHODIMP IsDefaultApplication(bool* aIsDefaultBrowser) { 16 // Only care about the http(s) protocol. This only matters on Windows. 17 return IsDefaultBrowser(false, aIsDefaultBrowser); 18 } 19 }; 20 21 #endif // nstoolkitshellservice_h____