~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/xpfe/appshell/src/nsChromeTreeOwner.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
 *
 
3
 * The contents of this file are subject to the Mozilla Public
 
4
 * License Version 1.1 (the "License"); you may not use this file
 
5
 * except in compliance with the License. You may obtain a copy of
 
6
 * the License at http://www.mozilla.org/MPL/
 
7
 * 
 
8
 * Software distributed under the License is distributed on an "AS
 
9
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
10
 * implied. See the License for the specific language governing
 
11
 * rights and limitations under the License.
 
12
 * 
 
13
 * The Original Code is the Mozilla browser.
 
14
 * 
 
15
 * The Initial Developer of the Original Code is Netscape
 
16
 * Communications, Inc.  Portions created by Netscape are
 
17
 * Copyright (C) 1999, Mozilla.  All Rights Reserved.
 
18
 * 
 
19
 * Contributor(s):
 
20
 *   Travis Bogard <travis@netscape.com>
 
21
 */
 
22
 
 
23
#ifndef nsChromeTreeOwner_h__
 
24
#define nsChromeTreeOwner_h__
 
25
 
 
26
// Helper Classes
 
27
#include "nsCOMPtr.h"
 
28
 
 
29
// Interfaces Needed
 
30
#include "nsIBaseWindow.h"
 
31
#include "nsIDocShellTreeOwner.h"
 
32
#include "nsIInterfaceRequestor.h"
 
33
#include "nsIInterfaceRequestorUtils.h"
 
34
#include "nsIWebProgressListener.h"
 
35
#include "nsWeakReference.h"
 
36
 
 
37
class nsXULWindow;
 
38
 
 
39
class nsChromeTreeOwner : public nsIDocShellTreeOwner,
 
40
                          public nsIBaseWindow, 
 
41
                          public nsIInterfaceRequestor,
 
42
                          public nsIWebProgressListener,
 
43
                          public nsSupportsWeakReference
 
44
{
 
45
friend class nsXULWindow;
 
46
 
 
47
public:
 
48
   NS_DECL_ISUPPORTS
 
49
 
 
50
   NS_DECL_NSIINTERFACEREQUESTOR
 
51
   NS_DECL_NSIBASEWINDOW
 
52
   NS_DECL_NSIDOCSHELLTREEOWNER
 
53
   NS_DECL_NSIWEBPROGRESSLISTENER
 
54
 
 
55
   static nsresult InitGlobals();
 
56
   static void     FreeGlobals();
 
57
 
 
58
protected:
 
59
   nsChromeTreeOwner();
 
60
   virtual ~nsChromeTreeOwner();
 
61
 
 
62
   void XULWindow(nsXULWindow* aXULWindow);
 
63
   nsXULWindow* XULWindow();
 
64
 
 
65
protected:
 
66
   nsXULWindow*      mXULWindow;
 
67
};
 
68
 
 
69
#endif /* nsChromeTreeOwner_h__ */