mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-15 04:00:12 +01:00
77 lines
3.2 KiB
Plaintext
77 lines
3.2 KiB
Plaintext
/* -- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -- /
|
|
BEGIN LICENSE BLOCK
|
|
Version: Mozilla-sample-code 1.0
|
|
|
|
Copyright (c) 2002 Netscape Communications Corporation and
|
|
other contributors
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a
|
|
copy of this Mozilla sample software and associated documentation files
|
|
(the "Software"), to deal in the Software without restriction, including
|
|
without limitation the rights to use, copy, modify, merge, publish,
|
|
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
persons to whom the Software is furnished to do so, subject to the
|
|
following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included
|
|
in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
DEALINGS IN THE SOFTWARE.
|
|
|
|
Contributor(s):
|
|
Radha Kulkarni <radha@netscape.com>
|
|
|
|
END LICENSE BLOCK */
|
|
|
|
// This interface acts as a glue between the required/optional
|
|
// Gecko embedding interfaces and the actual platform specific
|
|
// code that owns the UI.
|
|
// For ex, in the mozembed sample the required interfaces such as
|
|
// nsIWebBrowserChrome etc. are implemented in a XP way in the
|
|
// WebBrowserChrome.js. However, when they get called to update the
|
|
// statusbar etc. they call on this interface to get the actual job
|
|
// done.
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
#include "nsIBaseWindow.idl"
|
|
|
|
interface nsIWebBrowserChrome;
|
|
interface nsIWebBrowser;
|
|
interface nsIDOMEvent;
|
|
interface nsIDOMNode;
|
|
|
|
[scriptable, uuid(86D2C83D-AEFA-4382-BDC5-881A9232ED7B)]
|
|
interface nsIQABrowserUIGlue : nsISupports
|
|
{
|
|
|
|
void destroy(in nsIWebBrowserChrome aChrome);
|
|
void destroyed(in nsIWebBrowserChrome aChrome);
|
|
void setFocus(in nsIWebBrowserChrome aChrome);
|
|
void updateStatusBarText(in nsIWebBrowserChrome aChrome, in wstring aStatusText);
|
|
void updateCurrentURI(in nsIWebBrowserChrome aChrome);
|
|
void updateBusyState(in nsIWebBrowserChrome aChrome, in boolean aBusy);
|
|
void updateProgress(in nsIWebBrowserChrome aChrome, in long aCurrent, in long aMax);
|
|
void showContextMenu(in nsIWebBrowserChrome aChrome, in long aContextFlags, in nsIDOMEvent aEvent, in nsIDOMNode aNode);
|
|
void showTooltip(in nsIWebBrowserChrome aChrome, in long aXCoords, in long aYCoords, in wstring aTipText);
|
|
void hideTooltip(in nsIWebBrowserChrome aChrome);
|
|
void showWindow(in nsIWebBrowserChrome aChrome, in boolean aShow);
|
|
void sizeTo(in nsIWebBrowserChrome aChrome, in long aWidth, in long aHeight);
|
|
string getResourceStringById(in long aID);
|
|
|
|
attribute boolean visibility;
|
|
attribute wstring title;
|
|
attribute boolean allowNewBrowserWindows;
|
|
|
|
nsIWebBrowserChrome createNewBrowserWindow(in long aChromeFlags, in nsIWebBrowserChrome aParent);
|
|
void loadURL(in string aURL);
|
|
void loadHomePage();
|
|
};
|
|
|