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

« back to all changes in this revision

Viewing changes to mozilla/embedding/qa/mozembed/public/nsIQABrowserUIGlue.idl

  • 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: 4 -- /
 
2
  BEGIN LICENSE BLOCK 
 
3
  Version: Mozilla-sample-code 1.0
 
4
 
 
5
  Copyright (c) 2002 Netscape Communications Corporation and
 
6
  other contributors
 
7
 
 
8
  Permission is hereby granted, free of charge, to any person obtaining a
 
9
  copy of this Mozilla sample software and associated documentation files
 
10
  (the "Software"), to deal in the Software without restriction, including
 
11
  without limitation the rights to use, copy, modify, merge, publish,
 
12
  distribute, sublicense, and/or sell copies of the Software, and to permit
 
13
  persons to whom the Software is furnished to do so, subject to the
 
14
  following conditions:
 
15
 
 
16
  The above copyright notice and this permission notice shall be included
 
17
  in all copies or substantial portions of the Software.
 
18
 
 
19
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
20
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
21
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 
22
  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
23
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
24
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
25
  DEALINGS IN THE SOFTWARE.
 
26
 
 
27
  Contributor(s):
 
28
    Radha Kulkarni <radha@netscape.com> 
 
29
 
 
30
   END LICENSE BLOCK  */
 
31
 
 
32
// This interface acts as a glue between the required/optional 
 
33
// Gecko embedding interfaces and the actual platform specific
 
34
// code that owns the UI.
 
35
// For ex, in the mozembed sample the required interfaces such as 
 
36
// nsIWebBrowserChrome etc. are implemented in a XP way in the
 
37
// WebBrowserChrome.js. However, when they get called to update the
 
38
// statusbar etc. they call on this interface to get the actual job
 
39
// done. 
 
40
 
 
41
 
 
42
#include "nsISupports.idl"
 
43
#include "nsIBaseWindow.idl"
 
44
 
 
45
interface nsIWebBrowserChrome;
 
46
interface nsIWebBrowser;
 
47
interface nsIDOMEvent;
 
48
interface nsIDOMNode;
 
49
 
 
50
[scriptable, uuid(86D2C83D-AEFA-4382-BDC5-881A9232ED7B)]
 
51
interface nsIQABrowserUIGlue : nsISupports 
 
52
{
 
53
 
 
54
  void  destroy(in nsIWebBrowserChrome aChrome);
 
55
  void  destroyed(in nsIWebBrowserChrome aChrome);
 
56
  void  setFocus(in nsIWebBrowserChrome aChrome);
 
57
  void  updateStatusBarText(in nsIWebBrowserChrome aChrome, in   wstring aStatusText);
 
58
  void  updateCurrentURI(in nsIWebBrowserChrome aChrome);
 
59
  void  updateBusyState(in nsIWebBrowserChrome aChrome, in boolean aBusy);
 
60
  void  updateProgress(in nsIWebBrowserChrome aChrome, in long  aCurrent, in long aMax);  
 
61
  void  showContextMenu(in nsIWebBrowserChrome aChrome, in long aContextFlags, in nsIDOMEvent aEvent, in nsIDOMNode aNode);
 
62
  void  showTooltip(in nsIWebBrowserChrome aChrome, in long  aXCoords, in long aYCoords, in wstring aTipText);
 
63
  void  hideTooltip(in nsIWebBrowserChrome aChrome);
 
64
  void  showWindow(in nsIWebBrowserChrome aChrome, in boolean  aShow);
 
65
  void  sizeTo(in nsIWebBrowserChrome aChrome, in long  aWidth, in long aHeight);
 
66
  string getResourceStringById(in long aID);
 
67
 
 
68
  attribute boolean visibility;
 
69
  attribute wstring title;
 
70
  attribute boolean allowNewBrowserWindows;
 
71
 
 
72
  nsIWebBrowserChrome createNewBrowserWindow(in long  aChromeFlags, in nsIWebBrowserChrome  aParent);
 
73
  void loadURL(in string aURL);
 
74
  void loadHomePage();
 
75
};
 
76