Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / embedding / qa / testembed / BrowserImpl.h
blobe46cf05f10519b975533d7fc41b69aa9abb350ce
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
22 * Contributor(s):
23 * Chak Nanga <chak@netscape.com>
24 * David Epstein <depstein@netscape.com>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 #ifndef _BROWSERIMPL_H
41 #define _BROWSERIMPL_H
43 #include "IBrowserFrameGlue.h"
44 #include "nsIWebBrowserChromeFocus.h"
45 #include "nsIContextMenuListener.h"
46 #include "nsIDOMNode.h"
47 #include "nsISHistoryListener.h"
48 //#include "nsIURIContentListener.h"
51 class CBrowserImpl :
52 public nsIInterfaceRequestor,
53 public nsIWebBrowserChrome,
54 public nsIWebBrowserChromeFocus,
55 public nsIEmbeddingSiteWindow,
56 public nsIWebProgressListener,
57 public nsIContextMenuListener,
58 public nsSupportsWeakReference,
59 public nsISHistoryListener, // de: added this 5/11/01
60 public nsIStreamListener, // de: added this 6/29/01
61 public nsITooltipListener, // de: added this 7/25/01
62 public nsIURIContentListener // de: added this 8/8/02
64 public:
65 CBrowserImpl();
66 ~CBrowserImpl();
67 NS_METHOD Init(PBROWSERFRAMEGLUE pBrowserFrameGlue,
68 nsIWebBrowser* aWebBrowser);
69 // de: macros that declare methods for the ifaces implemented
70 // (instead of .h declarations)
71 NS_DECL_ISUPPORTS
72 NS_DECL_NSIINTERFACEREQUESTOR
73 NS_DECL_NSIWEBBROWSERCHROME
74 NS_DECL_NSIWEBBROWSERCHROMEFOCUS
75 NS_DECL_NSIEMBEDDINGSITEWINDOW
76 NS_DECL_NSIWEBPROGRESSLISTENER
77 NS_DECL_NSICONTEXTMENULISTENER
78 NS_DECL_NSISHISTORYLISTENER // de: added this in 5/11
79 NS_DECL_NSISTREAMLISTENER // de: added this in 6/29
80 NS_DECL_NSIREQUESTOBSERVER // de: added this in 6/29
81 NS_DECL_NSITOOLTIPLISTENER // de: added this in 7/25
82 NS_DECL_NSIURICONTENTLISTENER
83 // NS_DECL_NSITOOLTIPTEXTPROVIDER // de: added this in 7/25
85 protected:
87 PBROWSERFRAMEGLUE m_pBrowserFrameGlue;
89 nsCOMPtr<nsIWebBrowser> mWebBrowser;
90 nsCOMPtr<nsISupports> mLoadCookie; // de: used for nsIURIContentListener
91 nsCOMPtr<nsIURIContentListener> mParentContentListener; // de: used for nsIURIContentListener
92 PRUint32 mChromeMask;
95 #endif //_BROWSERIMPL_H