1
/* -- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -- /
3
Version: Mozilla-sample-code 1.0
5
Copyright (c) 2002 Netscape Communications Corporation and
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
16
The above copyright notice and this permission notice shall be included
17
in all copies or substantial portions of the Software.
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.
28
Radha Kulkarni <radha@netscape.com>
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
42
#include "nsISupports.idl"
43
#include "nsIBaseWindow.idl"
45
interface nsIWebBrowserChrome;
46
interface nsIWebBrowser;
47
interface nsIDOMEvent;
50
[scriptable, uuid(86D2C83D-AEFA-4382-BDC5-881A9232ED7B)]
51
interface nsIQABrowserUIGlue : nsISupports
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);
68
attribute boolean visibility;
69
attribute wstring title;
70
attribute boolean allowNewBrowserWindows;
72
nsIWebBrowserChrome createNewBrowserWindow(in long aChromeFlags, in nsIWebBrowserChrome aParent);
73
void loadURL(in string aURL);