1999-08-31 14:05:08 +00:00
|
|
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-08-31 14:05:08 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-08-31 14:05:08 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Mozilla Communicator client code,
|
|
|
|
* released March 31, 1998.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape Communications
|
|
|
|
* Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
1999-08-31 14:05:08 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* Contributor(s):
|
1999-08-31 14:05:08 +00:00
|
|
|
* William A. Law <law@netscape.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "domstubs.idl"
|
1999-10-12 04:37:43 +00:00
|
|
|
#include "nsISessionHistory.idl"
|
1999-08-31 14:05:08 +00:00
|
|
|
|
|
|
|
[scriptable, uuid(8AF0FA40-598D-11d3-806A-00600811A9C3)]
|
|
|
|
interface nsIBrowserInstance : nsISupports {
|
|
|
|
|
|
|
|
// History.
|
|
|
|
void back();
|
|
|
|
void forward();
|
|
|
|
void reload(in PRUint32 reloadType);
|
|
|
|
void stop();
|
|
|
|
void loadUrl(in wstring url);
|
|
|
|
void loadInitialPage();
|
|
|
|
void backButtonPopup();
|
|
|
|
void forwardButtonPopup();
|
|
|
|
void gotoHistoryIndex(in PRInt32 index);
|
1999-10-12 04:37:43 +00:00
|
|
|
readonly attribute nsISessionHistory SessionHistory;
|
1999-08-31 14:05:08 +00:00
|
|
|
|
|
|
|
// Wallet (should reside elsewhere, somehow).
|
|
|
|
void walletPreview(in nsIDOMWindow win, in nsIDOMWindow form);
|
1999-09-16 23:46:55 +00:00
|
|
|
|
1999-08-31 14:05:08 +00:00
|
|
|
void walletChangePassword();
|
|
|
|
void walletQuickFillin(in nsIDOMWindow win);
|
|
|
|
void walletRequestToCapture(in nsIDOMWindow win);
|
1999-09-16 23:46:55 +00:00
|
|
|
|
1999-08-31 14:05:08 +00:00
|
|
|
|
|
|
|
// Infrastructure.
|
|
|
|
void init();
|
|
|
|
void setContentWindow( in nsIDOMWindow aWindow );
|
|
|
|
void setWebShellWindow( in nsIDOMWindow aWindow );
|
|
|
|
void SetDocumentCharset(in wstring charset);
|
|
|
|
|
|
|
|
// File.
|
|
|
|
|
1999-09-16 23:46:55 +00:00
|
|
|
void printPreview();
|
|
|
|
void print();
|
|
|
|
void close();
|
1999-08-31 14:05:08 +00:00
|
|
|
// Edit.
|
|
|
|
void copy();
|
1999-09-02 01:22:14 +00:00
|
|
|
void selectAll();
|
1999-09-16 23:46:55 +00:00
|
|
|
|
|
|
|
|
1999-08-31 14:05:08 +00:00
|
|
|
|
|
|
|
// View.
|
|
|
|
attribute boolean isViewSource;
|
|
|
|
|
|
|
|
// Search.
|
|
|
|
void find();
|
|
|
|
void findNext();
|
|
|
|
};
|
|
|
|
|
|
|
|
%{C++
|
|
|
|
#define NS_IBROWSERINSTANCE_PROGID "component://netscape/appshell/component/browser/instance"
|
|
|
|
%}
|