1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * ***** BEGIN LICENSE BLOCK *****
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at
9 * http://www.mozilla.org/MPL/
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
16 * The Original Code is the Mozilla browser.
18 * The Initial Developer of the Original Code is
19 * Netscape Communications, Inc.
20 * Portions created by the Initial Developer are Copyright (C) 1999
21 * the Initial Developer. All Rights Reserved.
24 * Travis Bogard <travis@netscape.com>
26 * Alternatively, the contents of this file may be used under the terms of
27 * either the GNU General Public License Version 2 or later (the "GPL"), or
28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
32 * use your version of this file under the terms of the MPL, indicate your
33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
36 * the terms of any one of the MPL, the GPL or the LGPL.
38 * ***** END LICENSE BLOCK ***** */
40 #include
"nsISupports.idl"
43 * The nsIWebBrowserSetup interface lets you set properties on a browser
44 * object; you can do so at any time during the life cycle of the browser.
46 * @note Unless stated otherwise, settings are presumed to be enabled by
51 [scriptable
, uuid(F15398A0
-8018-11d3
-AF70
-00A024FFC08C
)]
52 interface nsIWebBrowserSetup
: nsISupports
55 * Boolean. Enables/disables plugin support for this browser.
59 const unsigned long SETUP_ALLOW_PLUGINS
= 1;
62 * Boolean. Enables/disables Javascript support for this browser.
66 const unsigned long SETUP_ALLOW_JAVASCRIPT
= 2;
69 * Boolean. Enables/disables meta redirect support for this browser.
70 * Meta redirect timers will be ignored if this option is disabled.
74 const unsigned long SETUP_ALLOW_META_REDIRECTS
= 3;
77 * Boolean. Enables/disables subframes within the browser
81 const unsigned long SETUP_ALLOW_SUBFRAMES
= 4;
84 * Boolean. Enables/disables image loading for this browser
85 * window. If you disable the images, load a page, then enable the images,
86 * the page will *not* automatically load the images for the previously
87 * loaded page. This flag controls the state of a webBrowser at load time
88 * and does not automatically re-load a page when the state is toggled.
89 * Reloading must be done by hand, or by walking through the DOM tree and
90 * re-setting the src attributes.
94 const unsigned long SETUP_ALLOW_IMAGES
= 5;
97 * Boolean. Enables/disables whether the document as a whole gets focus before
98 * traversing the document's content, or after traversing its content.
100 * NOTE: this property is obsolete and now has no effect
104 const unsigned long SETUP_FOCUS_DOC_BEFORE_CONTENT
= 6;
107 * Boolean. Enables/disables the use of global history in the browser. Visited
108 * URLs will not be recorded in the global history when it is disabled.
112 const unsigned long SETUP_USE_GLOBAL_HISTORY
= 256;
115 * Boolean. A value of PR_TRUE makes the browser a chrome wrapper.
116 * Default is PR_FALSE.
122 const unsigned long SETUP_IS_CHROME_WRAPPER
= 7;
125 * Sets an integer or boolean property on the new web browser object.
126 * Only PR_TRUE and PR_FALSE are legal boolean values.
128 * @param aId The identifier of the property to be set.
129 * @param aValue The value of the property.
131 void setProperty
(in unsigned long aId
, in unsigned long aValue
);