docshell/base/nsIWebShellServices.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsIWebShellServices.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +#ifndef nsIWebShellServices_h___
     1.9 +#define nsIWebShellServices_h___
    1.10 +
    1.11 +#include "nsISupports.h"
    1.12 +#include "nsCharsetSource.h"
    1.13 +
    1.14 +// Interface ID for nsIWebShellServices
    1.15 +
    1.16 +/* 0c628af0-5638-4703-8f99-ed6134c9de18 */
    1.17 +#define NS_IWEB_SHELL_SERVICES_IID \
    1.18 +{ 0x0c628af0, 0x5638, 0x4703, {0x8f, 0x99, 0xed, 0x61, 0x34, 0xc9, 0xde, 0x18} }
    1.19 +
    1.20 +//----------------------------------------------------------------------
    1.21 +
    1.22 +class nsIWebShellServices : public nsISupports {
    1.23 +public:
    1.24 +  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEB_SHELL_SERVICES_IID)
    1.25 +
    1.26 +  NS_IMETHOD ReloadDocument(const char* aCharset = nullptr , 
    1.27 +                            int32_t aSource = kCharsetUninitialized) = 0;
    1.28 +  NS_IMETHOD StopDocumentLoad(void) = 0;
    1.29 +};
    1.30 +
    1.31 +NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebShellServices, NS_IWEB_SHELL_SERVICES_IID)
    1.32 +
    1.33 +/* Use this macro when declaring classes that implement this interface. */
    1.34 +#define NS_DECL_NSIWEBSHELLSERVICES \
    1.35 +  NS_IMETHOD ReloadDocument(const char *aCharset=nullptr, int32_t aSource=kCharsetUninitialized); \
    1.36 +  NS_IMETHOD StopDocumentLoad(void); \
    1.37 +
    1.38 +#endif /* nsIWebShellServices_h___ */

mercurial