OLD | NEW |
(Empty) | |
| 1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 * |
| 3 * ***** BEGIN LICENSE BLOCK ***** |
| 4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 5 * |
| 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/ |
| 10 * |
| 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 |
| 14 * License. |
| 15 * |
| 16 * The Original Code is the Mozilla browser. |
| 17 * |
| 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. |
| 22 * |
| 23 * Contributor(s): |
| 24 * Travis Bogard <travis@netscape.com> |
| 25 * |
| 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. |
| 37 * |
| 38 * ***** END LICENSE BLOCK ***** */ |
| 39 |
| 40 #include "nsISupports.idl" |
| 41 |
| 42 /** |
| 43 * The nsIWebBrowserSetup interface allows certain properties of a new browser |
| 44 * object to set before the browser window is opened. |
| 45 * |
| 46 * @note Unless stated otherwise, settings are presumed to be enabled by |
| 47 * default. |
| 48 * |
| 49 * @status FROZEN |
| 50 */ |
| 51 [scriptable, uuid(F15398A0-8018-11d3-AF70-00A024FFC08C)] |
| 52 interface nsIWebBrowserSetup : nsISupports |
| 53 { |
| 54 /** |
| 55 * Boolean. Enables/disables plugin support for this browser. |
| 56 * |
| 57 * @see setProperty |
| 58 */ |
| 59 const unsigned long SETUP_ALLOW_PLUGINS = 1; |
| 60 |
| 61 /** |
| 62 * Boolean. Enables/disables Javascript support for this browser. |
| 63 * |
| 64 * @see setProperty |
| 65 */ |
| 66 const unsigned long SETUP_ALLOW_JAVASCRIPT = 2; |
| 67 |
| 68 /** |
| 69 * Boolean. Enables/disables meta redirect support for this browser. |
| 70 * Meta redirect timers will be ignored if this option is disabled. |
| 71 * |
| 72 * @see setProperty |
| 73 */ |
| 74 const unsigned long SETUP_ALLOW_META_REDIRECTS = 3; |
| 75 |
| 76 /** |
| 77 * Boolean. Enables/disables subframes within the browser |
| 78 * |
| 79 * @see setProperty |
| 80 */ |
| 81 const unsigned long SETUP_ALLOW_SUBFRAMES = 4; |
| 82 |
| 83 /** |
| 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. |
| 91 * |
| 92 * @see setProperty |
| 93 */ |
| 94 const unsigned long SETUP_ALLOW_IMAGES = 5; |
| 95 |
| 96 /** |
| 97 * Boolean. Enables/disables whether the document as a whole gets focus befo
re |
| 98 * traversing the document's content, or after traversing its content. |
| 99 * |
| 100 * NOTE: this property is obsolete and now has no effect |
| 101 * |
| 102 * @see setProperty |
| 103 */ |
| 104 const unsigned long SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; |
| 105 |
| 106 /** |
| 107 * Boolean. Enables/disables the use of global history in the browser. Visit
ed |
| 108 * URLs will not be recorded in the global history when it is disabled. |
| 109 * |
| 110 * @see setProperty |
| 111 */ |
| 112 const unsigned long SETUP_USE_GLOBAL_HISTORY = 256; |
| 113 |
| 114 /** |
| 115 * Boolean. A value of PR_TRUE makes the browser a chrome wrapper. |
| 116 * Default is PR_FALSE. |
| 117 * |
| 118 * @since mozilla1.0 |
| 119 * |
| 120 * @see setProperty |
| 121 */ |
| 122 const unsigned long SETUP_IS_CHROME_WRAPPER = 7; |
| 123 |
| 124 /** |
| 125 * Sets an integer or boolean property on the new web browser object. |
| 126 * Only PR_TRUE and PR_FALSE are legal boolean values. |
| 127 * |
| 128 * @param aId The identifier of the property to be set. |
| 129 * @param aValue The value of the property. |
| 130 */ |
| 131 void setProperty(in unsigned long aId, in unsigned long aValue); |
| 132 }; |
| 133 |
OLD | NEW |